summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/common/manifest
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/third_party/blink/common/manifest
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/common/manifest')
-rw-r--r--chromium/third_party/blink/common/manifest/manifest.cc3
-rw-r--r--chromium/third_party/blink/common/manifest/manifest_mojom_traits.cc16
2 files changed, 18 insertions, 1 deletions
diff --git a/chromium/third_party/blink/common/manifest/manifest.cc b/chromium/third_party/blink/common/manifest/manifest.cc
index 942311867cf..1d2db2b8b70 100644
--- a/chromium/third_party/blink/common/manifest/manifest.cc
+++ b/chromium/third_party/blink/common/manifest/manifest.cc
@@ -49,7 +49,8 @@ bool Manifest::IsEmpty() const {
icons.empty() && shortcuts.empty() && !share_target.has_value() &&
related_applications.empty() && file_handlers.empty() &&
!prefer_related_applications && !theme_color && !background_color &&
- gcm_sender_id.is_null() && scope.is_empty();
+ gcm_sender_id.is_null() && scope.is_empty() &&
+ protocol_handlers.empty();
}
} // namespace blink
diff --git a/chromium/third_party/blink/common/manifest/manifest_mojom_traits.cc b/chromium/third_party/blink/common/manifest/manifest_mojom_traits.cc
index 91878c1eea7..f345be0bdc7 100644
--- a/chromium/third_party/blink/common/manifest/manifest_mojom_traits.cc
+++ b/chromium/third_party/blink/common/manifest/manifest_mojom_traits.cc
@@ -75,6 +75,9 @@ bool StructTraits<blink::mojom::ManifestDataView, ::blink::Manifest>::Read(
if (!data.ReadFileHandlers(&out->file_handlers))
return false;
+ if (!data.ReadProtocolHandlers(&out->protocol_handlers))
+ return false;
+
if (!data.ReadRelatedApplications(&out->related_applications))
return false;
@@ -241,4 +244,17 @@ bool StructTraits<blink::mojom::ManifestFileHandlerDataView,
return true;
}
+bool StructTraits<blink::mojom::ManifestProtocolHandlerDataView,
+ ::blink::Manifest::ProtocolHandler>::
+ Read(blink::mojom::ManifestProtocolHandlerDataView data,
+ ::blink::Manifest::ProtocolHandler* out) {
+ if (!data.ReadProtocol(&out->protocol))
+ return false;
+
+ if (!data.ReadUrl(&out->url))
+ return false;
+
+ return true;
+}
+
} // namespace mojo