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

Issue 788073007: Cleanup geofence registrations when a service worker is unregistered. (Closed)

Created:
6 years ago by Marijn Kruisselbrink
Modified:
5 years, 11 months ago
Reviewers:
michaeln
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup geofence registrations when a service worker is unregistered. This changes ServiceWorkerContextObserver::OnRegistrationDeleted to include the registration ID. Also modify GeofencingManager unit tests to have an actual ServiceWorkerContextWrapper instance to test this behavior. BUG=444136, 383125 Committed: https://crrev.com/05b26f88e6d0a7559a050c12ae01cf00917bd0b2 Cr-Commit-Position: refs/heads/master@{#310905}

Patch Set 1 : #

Patch Set 2 : slightly improve mock usage in test #

Total comments: 4

Messages

Total messages: 12 (4 generated)
Marijn Kruisselbrink
6 years ago (2014-12-19 21:42:05 UTC) #4
Marijn Kruisselbrink
michaeln: could you please take a look?
5 years, 11 months ago (2015-01-09 19:20:34 UTC) #5
michaeln
yep... looking
5 years, 11 months ago (2015-01-09 19:38:19 UTC) #6
michaeln
lgtm https://codereview.chromium.org/788073007/diff/60001/content/browser/geofencing/geofencing_manager.cc File content/browser/geofencing/geofencing_manager.cc (right): https://codereview.chromium.org/788073007/diff/60001/content/browser/geofencing/geofencing_manager.cc#newcode333 content/browser/geofencing/geofencing_manager.cc:333: int64 service_worker_registration_id) { id here can be 'invalid', ...
5 years, 11 months ago (2015-01-09 22:58:41 UTC) #7
Marijn Kruisselbrink
https://codereview.chromium.org/788073007/diff/60001/content/browser/geofencing/geofencing_manager.cc File content/browser/geofencing/geofencing_manager.cc (right): https://codereview.chromium.org/788073007/diff/60001/content/browser/geofencing/geofencing_manager.cc#newcode333 content/browser/geofencing/geofencing_manager.cc:333: int64 service_worker_registration_id) { On 2015/01/09 22:58:41, michaeln wrote: > ...
5 years, 11 months ago (2015-01-09 23:13:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788073007/60001
5 years, 11 months ago (2015-01-09 23:13:57 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 11 months ago (2015-01-10 00:10:40 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-10 00:11:31 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/05b26f88e6d0a7559a050c12ae01cf00917bd0b2
Cr-Commit-Position: refs/heads/master@{#310905}

Powered by Google App Engine
This is Rietveld 408576698