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

Issue 930083002: Unregister with push service and SW database when permission is lost. (Closed)

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

Description

Unregister with push service and SW database when permission is lost. This CL makes the PushService a ContentSettings observer and check for the subscriber's origin permission when a ContentSettings change might have changed it. BUG=443228 Committed: https://crrev.com/8082d50a6306b1b93619a16836579044c562b98e Cr-Commit-Position: refs/heads/master@{#316799}

Patch Set 1 #

Patch Set 2 : ready #

Total comments: 20

Patch Set 3 : johnme review comments #

Patch Set 4 : add copy ctor #

Total comments: 4

Patch Set 5 : bauerb@ comments #

Patch Set 6 : rebase and copy assignement operator #

Patch Set 7 : remove const #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -34 lines) Patch
M chrome/browser/services/gcm/push_messaging_application_id.h View 1 2 3 4 5 6 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_application_id.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +241 lines, -1 line 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 2 3 4 5 6 7 5 chunks +53 lines, -4 lines 0 comments Download
M chrome/test/data/push_messaging/push_test.js View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/public/browser/push_messaging_service.h View 1 3 chunks +23 lines, -15 lines 0 comments Download
M content/public/browser/push_messaging_service.cc View 1 2 6 chunks +45 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
mlamouri (slow - plz ping)
johnme@, could you review changes in: chrome/browser/services/gcm/push_messaging_application_id.cc chrome/browser/services/gcm/push_messaging_application_id.h chrome/browser/services/gcm/push_messaging_browsertest.cc chrome/browser/services/gcm/push_messaging_service_impl.cc chrome/browser/services/gcm/push_messaging_service_impl.h avi@, could you review ...
5 years, 10 months ago (2015-02-16 19:16:02 UTC) #2
johnme
lgtm with nits - thanks :) https://codereview.chromium.org/930083002/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/930083002/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode888 chrome/browser/services/gcm/push_messaging_browsertest.cc:888: // The Push ...
5 years, 10 months ago (2015-02-16 20:27:45 UTC) #3
mlamouri (slow - plz ping)
Comments applied. avi@, could you PTAL at the content/public/ changes? https://codereview.chromium.org/930083002/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/930083002/diff/20001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode888 ...
5 years, 10 months ago (2015-02-16 20:46:03 UTC) #5
mlamouri (slow - plz ping)
+bauerb@ for push_messaging_service_impl.cc and the tests changes given the use of ContentSettings.
5 years, 10 months ago (2015-02-16 20:46:46 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/930083002/diff/60001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/930083002/diff/60001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode720 chrome/browser/services/gcm/push_messaging_browsertest.cc:720: GURL origin = https_server()->GetURL("").GetOrigin(); Use an empty std::string() constructor ...
5 years, 10 months ago (2015-02-16 22:41:05 UTC) #9
mlamouri (slow - plz ping)
bauerb@ review comments applied. https://codereview.chromium.org/930083002/diff/60001/chrome/browser/services/gcm/push_messaging_browsertest.cc File chrome/browser/services/gcm/push_messaging_browsertest.cc (right): https://codereview.chromium.org/930083002/diff/60001/chrome/browser/services/gcm/push_messaging_browsertest.cc#newcode720 chrome/browser/services/gcm/push_messaging_browsertest.cc:720: GURL origin = https_server()->GetURL("").GetOrigin(); On ...
5 years, 10 months ago (2015-02-16 23:34:36 UTC) #10
Bernhard Bauer
Thanks, LGTM!
5 years, 10 months ago (2015-02-17 08:46:08 UTC) #11
Avi (use Gerrit)
lgtm
5 years, 10 months ago (2015-02-17 16:21:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/930083002/120001
5 years, 10 months ago (2015-02-17 16:52:26 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_rel_tests_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_rel_tests_recipe/builds/2381)
5 years, 10 months ago (2015-02-17 17:57:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/930083002/120001
5 years, 10 months ago (2015-02-18 00:39:29 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_rel_tests_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_rel_tests_recipe/builds/2679)
5 years, 10 months ago (2015-02-18 00:51:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/930083002/140001
5 years, 10 months ago (2015-02-18 10:21:00 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-18 11:20:25 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 11:21:05 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8082d50a6306b1b93619a16836579044c562b98e
Cr-Commit-Position: refs/heads/master@{#316799}

Powered by Google App Engine
This is Rietveld 408576698