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

Issue 852463002: Keep track of ServiceWorkerContext's BrowserContext and expose it. (Closed)

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

Description

Keep track of ServiceWorkerContext's BrowserContext and expose it. This is happening in three steps: 1. StoragePartitionImpl keeps track of its associated BrowserContext. 2. ServiceWorkerContextWrapper keeps track of its associated StoragePartitionImpl. 3. ServiceWorkerContextCore can go up to the BrowserContext. BUG=437151 Committed: https://crrev.com/6cdca919f433ffd0268b338fac478ef0cdea9949 Cr-Commit-Position: refs/heads/master@{#311681}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 11

Patch Set 3 : review comments #

Total comments: 1

Patch Set 4 : oups #

Total comments: 2

Patch Set 5 : remove include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -9 lines) Patch
M content/browser/service_worker/service_worker_context_core.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 3 5 chunks +19 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 5 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
mlamouri (slow - plz ping)
5 years, 11 months ago (2015-01-12 17:12:59 UTC) #2
michaeln
https://codereview.chromium.org/852463002/diff/1/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/852463002/diff/1/content/browser/service_worker/service_worker_context_core.h#newcode199 content/browser/service_worker/service_worker_context_core.h:199: BrowserContext* GetBrowserContext() const; I don't think this getter should ...
5 years, 11 months ago (2015-01-12 20:19:13 UTC) #3
mlamouri (slow - plz ping)
Michael, I've applied your review comments. I have however a quick question about them. I ...
5 years, 11 months ago (2015-01-13 14:40:27 UTC) #4
mlamouri (slow - plz ping)
On 2015/01/13 at 14:40:27, Mounir Lamouri wrote: > Michael, I've applied your review comments. > ...
5 years, 11 months ago (2015-01-13 18:55:24 UTC) #5
michaeln
On 2015/01/13 14:40:27, Mounir Lamouri wrote: > Michael, I've applied your review comments. > > ...
5 years, 11 months ago (2015-01-13 20:17:36 UTC) #6
michaeln
> I have another issue actually. |context_| being a WeakPtr, I can't use it from ...
5 years, 11 months ago (2015-01-13 20:18:41 UTC) #7
mlamouri (slow - plz ping)
On 2015/01/13 at 20:18:41, michaeln wrote: > > I have another issue actually. |context_| being ...
5 years, 11 months ago (2015-01-13 20:42:37 UTC) #8
michaeln
https://codereview.chromium.org/852463002/diff/20001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/852463002/diff/20001/content/browser/service_worker/service_worker_context_core.h#newcode199 content/browser/service_worker/service_worker_context_core.h:199: // This MUST be called in the UI thread. ...
5 years, 11 months ago (2015-01-13 21:27:33 UTC) #9
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/852463002/diff/20001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/852463002/diff/20001/content/browser/service_worker/service_worker_context_core.h#newcode199 content/browser/service_worker/service_worker_context_core.h:199: // This MUST be called in ...
5 years, 11 months ago (2015-01-14 15:46:24 UTC) #10
michaeln
lgtm https://codereview.chromium.org/852463002/diff/20001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/852463002/diff/20001/content/browser/service_worker/service_worker_context_core.h#newcode199 content/browser/service_worker/service_worker_context_core.h:199: // This MUST be called in the UI ...
5 years, 11 months ago (2015-01-14 19:57:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/852463002/40001
5 years, 11 months ago (2015-01-14 23:07:25 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/35956)
5 years, 11 months ago (2015-01-14 23:10:59 UTC) #15
mlamouri (slow - plz ping)
avi@, could you have a look at the changes in the following files: - content/browser/storage_partition_impl.* ...
5 years, 11 months ago (2015-01-14 23:19:36 UTC) #17
michaeln
https://codereview.chromium.org/852463002/diff/40001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/852463002/diff/40001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode77 content/browser/service_worker/service_worker_context_wrapper.cc:77: is_incognito_(false) { ooops, wait, please initialize storage_partition_(nullptr) here
5 years, 11 months ago (2015-01-14 23:36:47 UTC) #18
mlamouri (slow - plz ping)
Oups, sorry about that :) +jochen@ in case of he can review the changes in ...
5 years, 11 months ago (2015-01-15 12:27:29 UTC) #21
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/852463002/diff/60001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/852463002/diff/60001/content/browser/service_worker/service_worker_context_core.cc#newcode25 content/browser/service_worker/service_worker_context_core.cc:25: #include "content/browser/storage_partition_impl.h" why the include?
5 years, 11 months ago (2015-01-15 15:14:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/852463002/80001
5 years, 11 months ago (2015-01-15 16:07:37 UTC) #25
mlamouri (slow - plz ping)
https://codereview.chromium.org/852463002/diff/60001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/852463002/diff/60001/content/browser/service_worker/service_worker_context_core.cc#newcode25 content/browser/service_worker/service_worker_context_core.cc:25: #include "content/browser/storage_partition_impl.h" On 2015/01/15 at 15:14:13, jochen (slow) wrote: ...
5 years, 11 months ago (2015-01-15 16:08:14 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-15 17:04:35 UTC) #27
commit-bot: I haz the power
5 years, 11 months ago (2015-01-15 17:05:17 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6cdca919f433ffd0268b338fac478ef0cdea9949
Cr-Commit-Position: refs/heads/master@{#311681}

Powered by Google App Engine
This is Rietveld 408576698