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

Issue 793403002: Implement WebPushProvider.unregister() in Chromium. (Closed)

Created:
6 years ago by mlamouri (slow - plz ping)
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mvan_2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement WebPushProvider.unregister() in Chromium. This is plumbing the call all the way to GCM in chrome/. It is also updating the layout test push service to react properly if unregister() is called multiple times or on a non-registered origin. This is part of a multi-sided CL: Part 1: https://codereview.chromium.org/793913002/ Part 2: <this> Part 3: https://codereview.chromium.org/800503002/ BUG=440958 Committed: https://crrev.com/2447700c2e26741e9ca3d043c3693884d7b66cf5 Cr-Commit-Position: refs/heads/master@{#308819}

Patch Set 1 #

Patch Set 2 : browsertests and override fix #

Total comments: 19

Patch Set 3 : rebase #

Patch Set 4 : review comments #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : DEPS #

Patch Set 7 : review commetns #

Total comments: 4

Patch Set 8 : rebase #

Patch Set 9 : review comments #

Total comments: 14

Patch Set 10 : rebase #

Patch Set 11 : review comments and test fixes #

Total comments: 1

Patch Set 12 : jochen review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -23 lines) Patch
M chrome/browser/services/gcm/push_messaging_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +46 lines, -9 lines 0 comments Download
M chrome/test/data/push_messaging/push_test.js View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -1 line 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +61 lines, -0 lines 0 comments Download
M content/child/push_messaging/push_dispatcher.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/child/push_messaging/push_provider.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -4 lines 0 comments Download
M content/child/push_messaging/push_provider.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +46 lines, -1 line 0 comments Download
M content/common/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/common/push_messaging_messages.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +18 lines, -0 lines 0 comments Download
M content/public/browser/push_messaging_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -3 lines 0 comments Download
M content/public/common/push_messaging_status.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_push_messaging_service.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_push_messaging_service.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
mlamouri (slow - plz ping)
6 years ago (2014-12-11 16:53:09 UTC) #2
Michael van Ouwerkerk
https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.h File content/browser/push_messaging/push_messaging_message_filter.h (right): https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.h#newcode81 content/browser/push_messaging/push_messaging_message_filter.h:81: int request_id); Please keep request_id as the first argument ...
6 years ago (2014-12-12 13:55:41 UTC) #3
johnme
https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.h File content/browser/push_messaging/push_messaging_message_filter.h (right): https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.h#newcode73 content/browser/push_messaging/push_messaging_message_filter.h:73: void OnUnregister(int request_id, Please use the following order when ...
6 years ago (2014-12-12 15:20:07 UTC) #5
johnme
https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc#newcode308 content/browser/push_messaging/push_messaging_message_filter.cc:308: Send(new PushMessagingMsg_UnregisterResponse(request_id, result)); Please remove the registration from SW ...
6 years ago (2014-12-12 15:22:02 UTC) #6
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.cc#newcode308 content/browser/push_messaging/push_messaging_message_filter.cc:308: Send(new PushMessagingMsg_UnregisterResponse(request_id, result)); On 2014/12/12 15:22:02, ...
6 years ago (2014-12-15 11:29:37 UTC) #7
johnme
https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.h File content/browser/push_messaging/push_messaging_message_filter.h (right): https://codereview.chromium.org/793403002/diff/20001/content/browser/push_messaging/push_messaging_message_filter.h#newcode73 content/browser/push_messaging/push_messaging_message_filter.h:73: void OnUnregister(int request_id, On 2014/12/15 11:29:36, Mounir Lamouri wrote: ...
6 years ago (2014-12-15 12:07:16 UTC) #8
Michael van Ouwerkerk
https://codereview.chromium.org/793403002/diff/60001/content/child/push_messaging/push_provider.h File content/child/push_messaging/push_provider.h (right): https://codereview.chromium.org/793403002/diff/60001/content/child/push_messaging/push_provider.h#newcode58 content/child/push_messaging/push_provider.h:58: void OnUnregisterResponse(int request_id, bool unregistered); I'd like more clarity ...
6 years ago (2014-12-15 12:29:14 UTC) #9
mlamouri (slow - plz ping)
tsepez@chromium.org: Please review changes in - content/commen/push_messaging_messages.h jochen@chromium.org: Please review changes in - content/ (OWNERS ...
6 years ago (2014-12-15 20:06:50 UTC) #11
Tom Sepez
Messages themselves LGTM.
6 years ago (2014-12-15 20:27:54 UTC) #12
Michael van Ouwerkerk
https://codereview.chromium.org/793403002/diff/60001/content/child/push_messaging/push_provider.h File content/child/push_messaging/push_provider.h (right): https://codereview.chromium.org/793403002/diff/60001/content/child/push_messaging/push_provider.h#newcode58 content/child/push_messaging/push_provider.h:58: void OnUnregisterResponse(int request_id, bool unregistered); On 2014/12/15 12:29:14, Michael ...
6 years ago (2014-12-16 11:36:51 UTC) #13
mlamouri (slow - plz ping)
On 2014/12/16 11:36:51, Michael van Ouwerkerk wrote: > https://codereview.chromium.org/793403002/diff/60001/content/child/push_messaging/push_provider.h > File content/child/push_messaging/push_provider.h (right): > > ...
6 years ago (2014-12-16 11:39:12 UTC) #14
Michael van Ouwerkerk
On 2014/12/16 11:39:12, Mounir Lamouri wrote: > On 2014/12/16 11:36:51, Michael van Ouwerkerk wrote: > ...
6 years ago (2014-12-16 11:49:13 UTC) #15
Michael van Ouwerkerk
lgtm but please address these comments https://codereview.chromium.org/793403002/diff/120001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/793403002/diff/120001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode488 chrome/browser/services/gcm/push_messaging_browsertest.cc:488: ASSERT_TRUE(RunScript("registerServiceWorker()", &script_result)); Sorry ...
6 years ago (2014-12-16 12:58:41 UTC) #16
mlamouri (slow - plz ping)
Review comments applied. jochen@, PTAL.
6 years ago (2014-12-16 15:06:18 UTC) #17
johnme
lgtm with nits (please apply the ordering comments globally, rather than just to the specific ...
6 years ago (2014-12-16 16:31:59 UTC) #18
mlamouri (slow - plz ping)
Comments applied. I've also fixed the failing tests because of running a null callback. https://codereview.chromium.org/793403002/diff/160001/chrome/browser/services/gcm/push_messaging_service_impl.cc ...
6 years ago (2014-12-16 18:26:16 UTC) #19
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/793403002/diff/200001/content/public/common/push_messaging_status.h File content/public/common/push_messaging_status.h (right): https://codereview.chromium.org/793403002/diff/200001/content/public/common/push_messaging_status.h#newcode60 content/public/common/push_messaging_status.h:60: PUSH_UNREGISTRATION_STATUS_SUCCESS_WAS_UNREGISTERED, WAS_NOT_REGISTERED maybe?
6 years ago (2014-12-17 08:15:16 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/793403002/220001
6 years ago (2014-12-17 16:04:47 UTC) #22
commit-bot: I haz the power
Committed patchset #12 (id:220001)
6 years ago (2014-12-17 17:48:06 UTC) #23
commit-bot: I haz the power
6 years ago (2014-12-17 17:48:55 UTC) #24
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/2447700c2e26741e9ca3d043c3693884d7b66cf5
Cr-Commit-Position: refs/heads/master@{#308819}

Powered by Google App Engine
This is Rietveld 408576698