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

Issue 292903002: Save running SW instance info, including its SiteInstance, into the ProcessManager. (Closed)

Created:
6 years, 7 months ago by Jeffrey Yasskin
Modified:
6 years, 7 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org, horo, dominicc (has gone to gerrit)
Visibility:
Public.

Description

Save running SW instance info, including its SiteInstance, into the ProcessManager. We can use this map to drop all the process references on shutdown, in order to fix http://crbug.com/368570. This starts to fix an assumption in the content layer that SiteInstances outlive their RPHs so that process permissions can be controlled through the SiteInstance instead of by process id. However, there's still work to do before that's completely fixed. BUG=368570 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272142

Patch Set 1 : Initial #

Total comments: 11

Patch Set 2 : Fix Dominic's comments #

Total comments: 4

Patch Set 3 : Fix 2 tests and Kinuko's comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -97 lines) Patch
M content/browser/service_worker/embedded_worker_instance.cc View 1 2 4 chunks +8 lines, -3 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance_unittest.cc View 1 2 2 chunks +71 lines, -29 lines 1 comment Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 2 chunks +1 line, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 5 chunks +31 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_context_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_process_manager.h View 3 chunks +46 lines, -16 lines 0 comments Download
M content/browser/service_worker/service_worker_process_manager.cc View 1 2 4 chunks +67 lines, -39 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Jeffrey Yasskin
This is an alternative to http://crrev.com/286973007 that doesn't remove the existing-process optimization.
6 years, 7 months ago (2014-05-20 01:24:26 UTC) #1
dominicc (has gone to gerrit)
Some DBCs. https://codereview.chromium.org/292903002/diff/20001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/292903002/diff/20001/content/browser/service_worker/service_worker_browsertest.cc#newcode663 content/browser/service_worker/service_worker_browsertest.cc:663: EXPECT_LE(CountRenderProcessHosts(), 1) << "Unregistering doesn't stop the ...
6 years, 7 months ago (2014-05-20 02:01:17 UTC) #2
Jeffrey Yasskin
https://codereview.chromium.org/292903002/diff/20001/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): https://codereview.chromium.org/292903002/diff/20001/content/browser/service_worker/service_worker_browsertest.cc#newcode663 content/browser/service_worker/service_worker_browsertest.cc:663: EXPECT_LE(CountRenderProcessHosts(), 1) << "Unregistering doesn't stop the " On ...
6 years, 7 months ago (2014-05-20 05:20:10 UTC) #3
kinuko
Ok I think this intermediate approach works for me (and hopefully for the team too). ...
6 years, 7 months ago (2014-05-20 06:30:03 UTC) #4
Jeffrey Yasskin
https://codereview.chromium.org/292903002/diff/50001/content/browser/service_worker/service_worker_process_manager.cc File content/browser/service_worker/service_worker_process_manager.cc (right): https://codereview.chromium.org/292903002/diff/50001/content/browser/service_worker/service_worker_process_manager.cc#newcode16 content/browser/service_worker/service_worker_process_manager.cc:16: int process_id) { On 2014/05/20 06:30:03, kinuko wrote: > ...
6 years, 7 months ago (2014-05-21 02:01:11 UTC) #5
michaeln1
drive-by: this looks like a nice improvement to me too
6 years, 7 months ago (2014-05-21 02:08:18 UTC) #6
Jeffrey Yasskin
Ping. Feel free to check the commit box if this looks good.
6 years, 7 months ago (2014-05-22 02:48:31 UTC) #7
kinuko
Sorry for delay... lgtm!
6 years, 7 months ago (2014-05-22 04:10:49 UTC) #8
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 7 months ago (2014-05-22 04:10:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/292903002/70001
6 years, 7 months ago (2014-05-22 04:12:36 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 08:36:55 UTC) #11
Message was sent while issue was closed.
Change committed as 272142

Powered by Google App Engine
This is Rietveld 408576698