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

Issue 785993003: [Push] Register: require user-visible to be present in the manifest (Closed)

Created:
6 years ago by Miguel Garcia
Modified:
6 years ago
CC:
chromium-reviews, markusheintz_, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Push] Register: require user-visible to be present in the manifest Prompt for notifications if the Notification permission was not previously granted. Refactor a bit the browser tests to accomodate pages with different manifests. BUG=432930 TBR=fgorski Committed: https://crrev.com/202115f03eb3c90a7139e69e0a1cb2062c0754cf Cr-Commit-Position: refs/heads/master@{#308075}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Fix test after mock behavior change that was recently introduced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -330 lines) Patch
M chrome/browser/content_settings/permission_context_base_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_browsertest.cc View 1 2 3 4 5 5 chunks +33 lines, -6 lines 0 comments Download
D chrome/browser/services/gcm/push_messaging_infobar_delegate.h View 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/browser/services/gcm/push_messaging_infobar_delegate.cc View 1 chunk +0 lines, -58 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.h View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.cc View 1 2 3 5 chunks +56 lines, -23 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc View 1 3 chunks +52 lines, -63 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/data/push_messaging/manifest.json View 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/push_messaging/manifest_without_user_visible_only.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/push_messaging/push_test.js View 1 2 3 4 1 chunk +121 lines, -0 lines 0 comments Download
M chrome/test/data/push_messaging/test.html View 1 2 1 chunk +1 line, -117 lines 0 comments Download
A chrome/test/data/push_messaging/test_bad_manifest.html View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
Miguel Garcia
Michael for OWNERS approval of the /gcm pieces and the tests Bernhard for Owners approval ...
6 years ago (2014-12-09 11:48:12 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/785993003/diff/1/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc File chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc (right): https://codereview.chromium.org/785993003/diff/1/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc#newcode48 chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc:48: PushMessagingPermissionContextTest(){}; Space before the braces, and no semicolon afterwards ...
6 years ago (2014-12-09 12:02:08 UTC) #3
Miguel Garcia
Thanks for the quick review! https://codereview.chromium.org/785993003/diff/1/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc File chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc (right): https://codereview.chromium.org/785993003/diff/1/chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc#newcode48 chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc:48: PushMessagingPermissionContextTest(){}; On 2014/12/09 12:02:07, ...
6 years ago (2014-12-09 14:24:32 UTC) #4
Bernhard Bauer
lgtm
6 years ago (2014-12-09 16:22:27 UTC) #5
Michael van Ouwerkerk
https://codereview.chromium.org/785993003/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/785993003/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode165 chrome/browser/services/gcm/push_messaging_browsertest.cc:165: protected: This should still be private. We have public ...
6 years ago (2014-12-10 18:36:33 UTC) #6
Miguel Garcia
https://chromiumcodereview.appspot.com/785993003/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://chromiumcodereview.appspot.com/785993003/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode165 chrome/browser/services/gcm/push_messaging_browsertest.cc:165: protected: On 2014/12/10 18:36:33, Michael van Ouwerkerk wrote: > ...
6 years ago (2014-12-11 11:37:08 UTC) #7
Michael van Ouwerkerk
lgtm with nits https://codereview.chromium.org/785993003/diff/40001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/785993003/diff/40001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode176 chrome/browser/services/gcm/push_messaging_browsertest.cc:176: https_server()->GetURL("files/push_messaging/test_bad_manifest.html")); Well, if you really prefer ...
6 years ago (2014-12-11 15:55:36 UTC) #8
Miguel Garcia
https://chromiumcodereview.appspot.com/785993003/diff/40001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://chromiumcodereview.appspot.com/785993003/diff/40001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode176 chrome/browser/services/gcm/push_messaging_browsertest.cc:176: https_server()->GetURL("files/push_messaging/test_bad_manifest.html")); On 2014/12/11 15:55:35, Michael van Ouwerkerk wrote: > ...
6 years ago (2014-12-11 16:20:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/785993003/60001
6 years ago (2014-12-11 16:21:26 UTC) #11
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/29728)
6 years ago (2014-12-11 16:26:21 UTC) #13
Miguel Garcia
TBR fgorski for the two removed files
6 years ago (2014-12-11 16:37:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/785993003/80001
6 years ago (2014-12-11 16:38:45 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/13747)
6 years ago (2014-12-11 17:44:33 UTC) #18
Michael van Ouwerkerk
On 2014/12/11 17:44:33, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years ago (2014-12-11 17:47:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/785993003/80001
6 years ago (2014-12-11 18:32:44 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/6909)
6 years ago (2014-12-11 19:59:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/785993003/100001
6 years ago (2014-12-12 10:27:33 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-12 14:40:01 UTC) #26
commit-bot: I haz the power
6 years ago (2014-12-12 14:41:36 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/202115f03eb3c90a7139e69e0a1cb2062c0754cf
Cr-Commit-Position: refs/heads/master@{#308075}

Powered by Google App Engine
This is Rietveld 408576698