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

Issue 933423003: Make BackgroundContentsService start up BackgroundContents with a delay, as for ExtensionHosts. (Closed)

Created:
5 years, 10 months ago by Yoyo Zhou
Modified:
5 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, not at google - send to devlin
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make BackgroundContentsService start up BackgroundContents with a delay, as for ExtensionHosts. extensions::ProcessManager starts ExtensionHosts asynchronously with a queue to avoid using too much resources at startup; make BackgroundContentsService use the same queue implementation. (ExtensionHostQueue now accepts an interface that both BackgroundContentsService and ExtensionHost share.) This significantly reduces the time BackgroundContentsService contributes to ExtensionService startup (75th percentile was ~300ms, according to Extensions.BackgroundContentsServiceStartupTime). BUG=47236 Committed: https://crrev.com/d61dfe19ab3188101e511f633eeaaef3dc689e41 Cr-Commit-Position: refs/heads/master@{#317480}

Patch Set 1 #

Total comments: 17

Patch Set 2 : devlin #

Patch Set 3 : delegate + rename #

Total comments: 3

Patch Set 4 : edulcni# #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -46 lines) Patch
M chrome/browser/background/background_contents.h View 1 2 4 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/background/background_contents.cc View 1 2 3 4 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/chrome_extension_host_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extension_host_delegate.cc View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
A extensions/browser/deferred_start_render_host.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M extensions/browser/extension_host.h View 1 2 7 chunks +9 lines, -8 lines 0 comments Download
M extensions/browser/extension_host.cc View 1 2 3 5 chunks +2 lines, -15 lines 0 comments Download
M extensions/browser/extension_host_delegate.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/browser/extension_host_queue.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/serial_extension_host_queue.h View 1 2 2 chunks +11 lines, -10 lines 0 comments Download
M extensions/browser/serial_extension_host_queue.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/extensions.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/shell_extension_host_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/browser/shell_extension_host_delegate.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
Yoyo Zhou
https://codereview.chromium.org/933423003/diff/1/extensions/browser/delayed_start_render_host.h File extensions/browser/delayed_start_render_host.h (right): https://codereview.chromium.org/933423003/diff/1/extensions/browser/delayed_start_render_host.h#newcode16 extensions/browser/delayed_start_render_host.h:16: class DelayedStartRenderHost { This is not my favoritest name ...
5 years, 10 months ago (2015-02-18 22:53:19 UTC) #2
Devlin
https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc#newcode31 chrome/browser/background/background_contents.cc:31: struct QueueWrapper { Should we have two separate queues ...
5 years, 10 months ago (2015-02-18 23:22:12 UTC) #3
Yoyo Zhou
https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc#newcode31 chrome/browser/background/background_contents.cc:31: struct QueueWrapper { On 2015/02/18 23:22:12, Devlin wrote: > ...
5 years, 10 months ago (2015-02-19 02:55:38 UTC) #5
Devlin
https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc#newcode31 chrome/browser/background/background_contents.cc:31: struct QueueWrapper { On 2015/02/19 02:55:37, Yoyo Zhou (OOO...2015-02-16) ...
5 years, 10 months ago (2015-02-19 16:41:43 UTC) #6
Devlin
+Ben as FYI (since he's working on adding the different implementations of the host queue)
5 years, 10 months ago (2015-02-19 16:42:29 UTC) #7
not at google - send to devlin
This is awesome. https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc#newcode31 chrome/browser/background/background_contents.cc:31: struct QueueWrapper { On 2015/02/19 16:41:43, ...
5 years, 10 months ago (2015-02-19 18:07:41 UTC) #9
not at google - send to devlin
Btw in this case I believe they should share a single queue, but I don't ...
5 years, 10 months ago (2015-02-19 19:51:07 UTC) #10
Yoyo Zhou
I renamed to DeferredStartRenderHost. I think it's slightly better. https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc#newcode31 chrome/browser/background/background_contents.cc:31: ...
5 years, 10 months ago (2015-02-19 23:57:58 UTC) #11
Devlin
lgtm, though still waiting to hear about notification orderings. https://codereview.chromium.org/933423003/diff/40001/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/40001/chrome/browser/background/background_contents.cc#newcode7 chrome/browser/background/background_contents.cc:7: ...
5 years, 10 months ago (2015-02-20 00:07:57 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/1/chrome/browser/background/background_contents.cc#newcode31 chrome/browser/background/background_contents.cc:31: struct QueueWrapper { On 2015/02/19 23:57:58, Yoyo Zhou (OOO...2015-02-16) ...
5 years, 10 months ago (2015-02-20 00:28:33 UTC) #13
Andrew T Wilson (Slow)
background/ LGTM - thanks so much for tackling this!
5 years, 10 months ago (2015-02-20 11:08:57 UTC) #14
Yoyo Zhou
Tim: any thoughts on the changes to the NOTIFICATION_BACKGROUND_CONTENTS_OPENED notification? With this change, the notification ...
5 years, 10 months ago (2015-02-20 19:30:47 UTC) #15
Yoyo Zhou
https://codereview.chromium.org/933423003/diff/40001/chrome/browser/background/background_contents.cc File chrome/browser/background/background_contents.cc (right): https://codereview.chromium.org/933423003/diff/40001/chrome/browser/background/background_contents.cc#newcode7 chrome/browser/background/background_contents.cc:7: #include "base/lazy_instance.h" On 2015/02/20 00:07:57, Devlin wrote: > don't ...
5 years, 10 months ago (2015-02-20 20:00:01 UTC) #17
Tim Song
I don't perform any operations on the background page, and only use the background page ...
5 years, 10 months ago (2015-02-21 00:59:07 UTC) #18
Tim Song
lgtm I don't perform any operations on the background page, and only use the background ...
5 years, 10 months ago (2015-02-21 00:59:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933423003/60001
5 years, 10 months ago (2015-02-21 01:00:57 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-21 01:30:45 UTC) #22
commit-bot: I haz the power
5 years, 10 months ago (2015-02-21 01:31:40 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d61dfe19ab3188101e511f633eeaaef3dc689e41
Cr-Commit-Position: refs/heads/master@{#317480}

Powered by Google App Engine
This is Rietveld 408576698