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

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

Issue 770023002: Push registration should read a "gcm_user_visible_only" key from the Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « content/public/common/manifest.h ('k') | content/renderer/manifest/manifest_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/manifest.cc
diff --git a/content/public/common/manifest.cc b/content/public/common/manifest.cc
index 292b85b44dbad8fce4c7c3453279d7af6bf723f3..389754189cecbc5713782cd182839a1e5a2bc8bf 100644
--- a/content/public/common/manifest.cc
+++ b/content/public/common/manifest.cc
@@ -18,7 +18,8 @@ Manifest::Icon::~Icon() {
Manifest::Manifest()
: display(DISPLAY_MODE_UNSPECIFIED),
- orientation(blink::WebScreenOrientationLockDefault) {
+ orientation(blink::WebScreenOrientationLockDefault),
+ gcm_user_visible_only(false) {
}
Manifest::~Manifest() {
@@ -31,7 +32,8 @@ bool Manifest::IsEmpty() const {
display == DISPLAY_MODE_UNSPECIFIED &&
orientation == blink::WebScreenOrientationLockDefault &&
icons.empty() &&
- gcm_sender_id.is_null();
+ gcm_sender_id.is_null() &&
+ !gcm_user_visible_only;
}
} // namespace content
« no previous file with comments | « content/public/common/manifest.h ('k') | content/renderer/manifest/manifest_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698