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

Issue 661463002: Implement PushManager#hasPermission (Closed)

Created:
6 years, 2 months ago by Miguel Garcia
Modified:
6 years, 1 month ago
CC:
chromium-reviews, zea+watch_chromium.org, jam, mkwst+moarreviews-ipc_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Chrome implementation of PushManager#hasPermission() Depends on https://codereview.chromium.org/658723003/ BUG=401424 Committed: https://crrev.com/7e9a98dd33a2826f82251a1740b68ae473674a16 Cr-Commit-Position: refs/heads/master@{#302259}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Support all three possible states of the permission #

Total comments: 21

Patch Set 4 : #

Patch Set 5 : #

Total comments: 17

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Total comments: 16

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -2 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +41 lines, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/push_messaging_message_filter.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/push_messaging_message_filter.cc View 1 2 3 4 5 6 7 8 4 chunks +40 lines, -0 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/common/push_messaging_messages.h View 1 2 3 4 5 6 4 chunks +16 lines, -0 lines 0 comments Download
M content/public/browser/push_messaging_service.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/push_messaging_dispatcher.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -1 line 0 comments Download
M content/renderer/push_messaging_dispatcher.cc View 1 2 3 4 5 6 7 3 chunks +34 lines, -1 line 0 comments Download

Messages

Total messages: 29 (4 generated)
Miguel Garcia
This is ready for an initial review.
6 years, 2 months ago (2014-10-15 15:27:54 UTC) #2
mlamouri (slow - plz ping)
drive-by review https://codereview.chromium.org/661463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/661463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode55 chrome/browser/content_settings/permission_context_base.cc:55: profile_->GetHostContentSettingsMap() nit: do you really need a ...
6 years, 2 months ago (2014-10-16 09:04:57 UTC) #4
Miguel Garcia
Thanks for the review Mounir! https://chromiumcodereview.appspot.com/661463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://chromiumcodereview.appspot.com/661463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode55 chrome/browser/content_settings/permission_context_base.cc:55: profile_->GetHostContentSettingsMap() On 2014/10/16 09:04:57, ...
6 years, 2 months ago (2014-10-16 13:50:27 UTC) #5
Miguel Garcia
Thanks for the review Mounir!
6 years, 2 months ago (2014-10-16 13:50:27 UTC) #6
Miguel Garcia
On 2014/10/16 13:50:27, Miguel Garcia wrote: > Thanks for the review Mounir! Friendly ping on ...
6 years, 2 months ago (2014-10-17 08:53:43 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/661463002/diff/40001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/661463002/diff/40001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode243 chrome/browser/services/gcm/push_messaging_service_impl.cc:243: default: On 2014/10/16 13:50:26, Miguel Garcia wrote: > On ...
6 years, 2 months ago (2014-10-17 09:30:56 UTC) #8
Miguel Garcia
> > On 2014/10/16 09:04:57, Mounir Lamouri wrote: > > > What about the other ...
6 years, 2 months ago (2014-10-20 09:40:42 UTC) #9
Michael van Ouwerkerk
Thanks Miguel! What's your test plan for this feature? https://codereview.chromium.org/661463002/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/661463002/diff/80001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode234 chrome/browser/services/gcm/push_messaging_service_impl.cc:234: ...
6 years, 2 months ago (2014-10-20 16:30:08 UTC) #10
Miguel Garcia
Thanks for the review Michael! It seems we are converging so I am adding some ...
6 years, 2 months ago (2014-10-22 16:35:28 UTC) #11
Miguel Garcia
And my apologies to everybody for the "Not yet ready for review" subject. The code ...
6 years, 2 months ago (2014-10-22 16:37:38 UTC) #12
Michael van Ouwerkerk
lgtm with nits https://codereview.chromium.org/661463002/diff/100001/content/browser/push_messaging_message_filter.cc File content/browser/push_messaging_message_filter.cc (right): https://codereview.chromium.org/661463002/diff/100001/content/browser/push_messaging_message_filter.cc#newcode97 content/browser/push_messaging_message_filter.cc:97: if (service_worker_host && service_worker_host->active_version()) { What ...
6 years, 2 months ago (2014-10-24 12:36:08 UTC) #13
Miguel Garcia
https://chromiumcodereview.appspot.com/661463002/diff/100001/content/browser/push_messaging_message_filter.cc File content/browser/push_messaging_message_filter.cc (right): https://chromiumcodereview.appspot.com/661463002/diff/100001/content/browser/push_messaging_message_filter.cc#newcode97 content/browser/push_messaging_message_filter.cc:97: if (service_worker_host && service_worker_host->active_version()) { On 2014/10/24 12:36:08, Michael ...
6 years, 1 month ago (2014-10-29 18:32:03 UTC) #14
Miguel Garcia
Adding Owners for the different directories jam@ for content and the DEPS changes bauerb@ for ...
6 years, 1 month ago (2014-10-29 18:36:13 UTC) #16
jam
lgtm https://codereview.chromium.org/661463002/diff/120001/content/public/browser/push_messaging_service.h File content/public/browser/push_messaging_service.h (right): https://codereview.chromium.org/661463002/diff/120001/content/public/browser/push_messaging_service.h#newcode35 content/public/browser/push_messaging_service.h:35: virtual blink::WebPushPermissionStatus GetPermissionStatus( nit: document everything in this ...
6 years, 1 month ago (2014-10-29 20:08:58 UTC) #17
mlamouri (slow - plz ping)
nit: you are using |renderer_id| in some places where you actually mean |render_process_id|. lgtm, otherwise. ...
6 years, 1 month ago (2014-10-29 20:13:33 UTC) #18
palmer
IPC security LGTM. https://codereview.chromium.org/661463002/diff/120001/chrome/browser/content_settings/permission_context_base.h File chrome/browser/content_settings/permission_context_base.h (right): https://codereview.chromium.org/661463002/diff/120001/chrome/browser/content_settings/permission_context_base.h#newcode68 chrome/browser/content_settings/permission_context_base.h:68: virtual ContentSetting PermissionStatus(const GURL& requesting_origin, Gloriously ...
6 years, 1 month ago (2014-10-29 20:45:26 UTC) #19
fgorski
Is there a way to add unit test for this functionality? Or do you plan ...
6 years, 1 month ago (2014-10-29 20:52:44 UTC) #20
Miguel Garcia
Thanks a lot for the quick review! https://codereview.chromium.org/661463002/diff/120001/chrome/browser/content_settings/permission_context_base.h File chrome/browser/content_settings/permission_context_base.h (right): https://codereview.chromium.org/661463002/diff/120001/chrome/browser/content_settings/permission_context_base.h#newcode68 chrome/browser/content_settings/permission_context_base.h:68: virtual ContentSetting ...
6 years, 1 month ago (2014-10-30 12:27:15 UTC) #21
Miguel Garcia
On 2014/10/29 20:52:44, fgorski wrote: > Is there a way to add unit test for ...
6 years, 1 month ago (2014-10-30 12:27:28 UTC) #22
Bernhard Bauer
LGTM with nits: https://codereview.chromium.org/661463002/diff/140001/chrome/browser/content_settings/permission_context_base.h File chrome/browser/content_settings/permission_context_base.h (right): https://codereview.chromium.org/661463002/diff/140001/chrome/browser/content_settings/permission_context_base.h#newcode68 chrome/browser/content_settings/permission_context_base.h:68: virtual ContentSetting PermissionStatus(const GURL& requesting_origin, Nit: ...
6 years, 1 month ago (2014-10-30 14:19:41 UTC) #23
fgorski
lgtm
6 years, 1 month ago (2014-10-30 16:04:19 UTC) #24
Miguel Garcia
https://codereview.chromium.org/661463002/diff/140001/chrome/browser/content_settings/permission_context_base.h File chrome/browser/content_settings/permission_context_base.h (right): https://codereview.chromium.org/661463002/diff/140001/chrome/browser/content_settings/permission_context_base.h#newcode68 chrome/browser/content_settings/permission_context_base.h:68: virtual ContentSetting PermissionStatus(const GURL& requesting_origin, On 2014/10/30 14:19:41, Bernhard ...
6 years, 1 month ago (2014-10-31 13:02:30 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/661463002/160001
6 years, 1 month ago (2014-10-31 13:03:23 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years, 1 month ago (2014-10-31 14:21:47 UTC) #28
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 14:22:28 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7e9a98dd33a2826f82251a1740b68ae473674a16
Cr-Commit-Position: refs/heads/master@{#302259}

Powered by Google App Engine
This is Rietveld 408576698