Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: content/public/common/manifest.cc

Issue 919293002: Add related_applications field to manifest parser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix stuffup Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/common/manifest.cc
diff --git a/content/public/common/manifest.cc b/content/public/common/manifest.cc
index 389754189cecbc5713782cd182839a1e5a2bc8bf..05df0027e00f1245446b1d7f831abf6a58ce4698 100644
--- a/content/public/common/manifest.cc
+++ b/content/public/common/manifest.cc
@@ -16,6 +16,13 @@ Manifest::Icon::Icon()
Manifest::Icon::~Icon() {
}
+Manifest::ChromeRelatedApplication::ChromeRelatedApplication()
+ : platform(CHROME_RELATED_APPLICATION_PLATFORM_UNSPECIFIED) {
+}
+
+Manifest::ChromeRelatedApplication::~ChromeRelatedApplication() {
+}
+
Manifest::Manifest()
: display(DISPLAY_MODE_UNSPECIFIED),
orientation(blink::WebScreenOrientationLockDefault),
@@ -33,7 +40,8 @@ bool Manifest::IsEmpty() const {
orientation == blink::WebScreenOrientationLockDefault &&
icons.empty() &&
gcm_sender_id.is_null() &&
- !gcm_user_visible_only;
+ !gcm_user_visible_only &&
+ chrome_related_applications.empty();
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698