|
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}
Total comments: 17
Total comments: 3
|
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
|
Total messages: 23 (5 generated)
|