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

Issue 770023002: Push registration should read a "gcm_user_visible_only" key from the Manifest. (Closed)

Created:
6 years ago by Peter Beverloo
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Push registration should read a "gcm_user_visible_only" key from the Manifest. Per this implementation, the key will be read from the developer-supplied manifest file as a boolean value (defaulting to FALSE), and passed through to the browser process. BUG=437929 Committed: https://crrev.com/94297a7db1826ba150b7d0766ddb52d4084e3914 Cr-Commit-Position: refs/heads/master@{#306824}

Patch Set 1 #

Patch Set 2 : comment fix #

Total comments: 12

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -18 lines) Patch
M chrome/browser/services/gcm/push_messaging_service_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 2 3 4 5 4 chunks +7 lines, -4 lines 0 comments Download
M content/common/push_messaging_messages.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/push_messaging_service.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/manifest.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/manifest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/manifest/manifest_parser.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/manifest/manifest_parser.cc View 1 2 3 chunks +22 lines, -0 lines 0 comments Download
M content/renderer/manifest/manifest_parser_unittest.cc View 1 2 3 4 5 chunks +56 lines, -3 lines 0 comments Download
M content/renderer/push_messaging_dispatcher.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Peter Beverloo
+mlamouri for manifest +mvanouwerkerk for Push
6 years ago (2014-12-01 20:53:18 UTC) #2
mlamouri (slow - plz ping)
About you maxing out IPC macros, I think you could simply remove |user_gesture| from there. ...
6 years ago (2014-12-01 21:05:09 UTC) #3
Miguel Garcia
https://chromiumcodereview.appspot.com/770023002/diff/20001/chrome/browser/services/gcm/push_messaging_service_impl.h File chrome/browser/services/gcm/push_messaging_service_impl.h (right): https://chromiumcodereview.appspot.com/770023002/diff/20001/chrome/browser/services/gcm/push_messaging_service_impl.h#newcode62 chrome/browser/services/gcm/push_messaging_service_impl.h:62: blink::WebPushPermissionStatus GetPermissionStatus( I think we need user_visible_only here as ...
6 years ago (2014-12-03 14:02:51 UTC) #5
Peter Beverloo
All done. PTAL. https://codereview.chromium.org/770023002/diff/20001/chrome/browser/services/gcm/push_messaging_service_impl.h File chrome/browser/services/gcm/push_messaging_service_impl.h (right): https://codereview.chromium.org/770023002/diff/20001/chrome/browser/services/gcm/push_messaging_service_impl.h#newcode62 chrome/browser/services/gcm/push_messaging_service_impl.h:62: blink::WebPushPermissionStatus GetPermissionStatus( On 2014/12/03 14:02:51, Miguel ...
6 years ago (2014-12-03 15:01:59 UTC) #6
Michael van Ouwerkerk
https://codereview.chromium.org/770023002/diff/40001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/770023002/diff/40001/content/renderer/manifest/manifest_parser_unittest.cc#newcode70 content/renderer/manifest/manifest_parser_unittest.cc:70: ASSERT_TRUE(manifest.gcm_user_visible_only); This should be ASSERT_FALSE, no? https://codereview.chromium.org/770023002/diff/40001/content/renderer/manifest/manifest_parser_unittest.cc#newcode87 content/renderer/manifest/manifest_parser_unittest.cc:87: ASSERT_TRUE(manifest.gcm_user_visible_only); ...
6 years ago (2014-12-03 15:18:12 UTC) #7
Peter Beverloo
https://codereview.chromium.org/770023002/diff/40001/content/renderer/manifest/manifest_parser_unittest.cc File content/renderer/manifest/manifest_parser_unittest.cc (right): https://codereview.chromium.org/770023002/diff/40001/content/renderer/manifest/manifest_parser_unittest.cc#newcode70 content/renderer/manifest/manifest_parser_unittest.cc:70: ASSERT_TRUE(manifest.gcm_user_visible_only); On 2014/12/03 15:18:12, Michael van Ouwerkerk wrote: > ...
6 years ago (2014-12-03 15:21:57 UTC) #8
mlamouri (slow - plz ping)
lgtm with comments applied. https://codereview.chromium.org/770023002/diff/60001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/770023002/diff/60001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode288 chrome/browser/services/gcm/push_messaging_service_impl.cc:288: // re-introduce the ability of ...
6 years ago (2014-12-03 15:29:02 UTC) #9
Michael van Ouwerkerk
lgtm
6 years ago (2014-12-03 15:29:47 UTC) #10
johnme
https://codereview.chromium.org/770023002/diff/60001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/770023002/diff/60001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode290 chrome/browser/services/gcm/push_messaging_service_impl.cc:290: web_contents, id, embedding_origin, true /* user_gesture */, It's not ...
6 years ago (2014-12-03 15:36:32 UTC) #12
Peter Beverloo
https://codereview.chromium.org/770023002/diff/60001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/770023002/diff/60001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode288 chrome/browser/services/gcm/push_messaging_service_impl.cc:288: // re-introduce the ability of |user_gesture| when bubbles require ...
6 years ago (2014-12-03 15:41:10 UTC) #13
Peter Beverloo
+avi, my content/ hero
6 years ago (2014-12-03 19:06:47 UTC) #15
Peter Beverloo
tsepez@chromium.org: for IPC stamp
6 years ago (2014-12-03 19:07:52 UTC) #17
Avi (use Gerrit)
LGTM if that is indeed an explanatory comment. https://codereview.chromium.org/770023002/diff/80001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/770023002/diff/80001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode291 chrome/browser/services/gcm/push_messaging_service_impl.cc:291: web_contents, ...
6 years ago (2014-12-03 19:20:19 UTC) #18
Peter Beverloo
On 2014/12/03 19:20:19, Avi wrote: > LGTM if that is indeed an explanatory comment. > ...
6 years ago (2014-12-03 19:26:36 UTC) #19
Tom Sepez
Messages LGTM.
6 years ago (2014-12-03 19:56:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/770023002/80001
6 years ago (2014-12-03 23:11:26 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/28075)
6 years ago (2014-12-03 23:16:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/770023002/100001
6 years ago (2014-12-04 13:52:20 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-04 16:05:58 UTC) #27
commit-bot: I haz the power
6 years ago (2014-12-04 16:07:18 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/94297a7db1826ba150b7d0766ddb52d4084e3914
Cr-Commit-Position: refs/heads/master@{#306824}

Powered by Google App Engine
This is Rietveld 408576698