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

Issue 2925423002: Move all calls on ServiceWorkerContextCoreObserver to ServiceWorkerContextCore. (Closed)

Created:
3 years, 6 months ago by dominickn
Modified:
3 years, 6 months ago
Reviewers:
kinuko, falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move all calls on ServiceWorkerContextCoreObserver to ServiceWorkerContextCore. Currently, ServiceWorkerContextWrapper holds a base::ObserverList of ServiceWorkerContextCoreObservers, which are passed to the wrapped ServiceWorkerContextCore upon creation. However, the OnStorageWiped call is only made by the wrapping class, not the wrapped class. This CL moves the OnStorageWiped observer method to be triggered by the wrapped ServiceWorkerContextCore object. This means all observer methods are triggered by that object. BUG=625051 Review-Url: https://codereview.chromium.org/2925423002 Cr-Commit-Position: refs/heads/master@{#478897} Committed: https://chromium.googlesource.com/chromium/src/+/f86ff4e07ecc10e97d9c677b44b1a46d91d1caf3

Patch Set 1 #

Total comments: 2

Patch Set 2 : No need to pass observer_list #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M content/browser/service_worker/service_worker_context_core.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 4 chunks +6 lines, -7 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (15 generated)
dominickn
PTAL thanks! This is follows on from https://codereview.chromium.org/2931033003/.
3 years, 6 months ago (2017-06-09 06:54:13 UTC) #4
kinuko
https://codereview.chromium.org/2925423002/diff/1/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/2925423002/diff/1/content/browser/service_worker/service_worker_context_core.cc#newcode276 content/browser/service_worker/service_worker_context_core.cc:276: observer_list_(observer_list), I might not be following this part, why ...
3 years, 6 months ago (2017-06-09 08:51:48 UTC) #9
dominickn
https://codereview.chromium.org/2925423002/diff/1/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/2925423002/diff/1/content/browser/service_worker/service_worker_context_core.cc#newcode276 content/browser/service_worker/service_worker_context_core.cc:276: observer_list_(observer_list), On 2017/06/09 08:51:47, kinuko wrote: > I might ...
3 years, 6 months ago (2017-06-12 23:55:55 UTC) #10
dominickn
Submit too soon: "I think there's a potential use-after-free here. Once you add an observer, ...
3 years, 6 months ago (2017-06-12 23:56:45 UTC) #11
kinuko
On 2017/06/12 23:56:45, dominickn wrote: > Submit too soon: > > "I think there's a ...
3 years, 6 months ago (2017-06-13 01:06:28 UTC) #12
dominickn
On 2017/06/13 01:06:28, kinuko wrote: > On 2017/06/12 23:56:45, dominickn wrote: > > Submit too ...
3 years, 6 months ago (2017-06-13 01:23:37 UTC) #15
kinuko
lgtm
3 years, 6 months ago (2017-06-13 04:00:35 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2925423002/20001
3 years, 6 months ago (2017-06-13 04:02:25 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 04:05:42 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f86ff4e07ecc10e97d9c677b44b1...

Powered by Google App Engine
This is Rietveld 408576698