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

Issue 23618014: This defers starting background extension page RenderViews (Closed)

Created:
7 years, 3 months ago by Greg Spencer (Chromium)
Modified:
7 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, rginda+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

This defers starting background extension page RenderViews until after session restore has completed. This is mainly to help login/startup times so that Chrome is useful to the user earlier. To make sure that this is actually helping, this CL includes a Finch experiment that will only enable the deferral on 50% of the clients. It is also expected that deferring these will help with some problems we've seen when extensions attempt to do GAIA authentication. BUG=279427, 259791 TEST=Ran performance tests on ChromeOS and Linux Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221621

Patch Set 1 #

Patch Set 2 : Added field trial #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Simplified, reverted changes to extension_host #

Total comments: 2

Patch Set 5 : Merged logic into DeferLoadingBackgroundHosts #

Total comments: 3

Patch Set 6 : Added ENABLE_EXTENSIONS ifdef #

Total comments: 2

Patch Set 7 : Fixed typo #

Patch Set 8 : Fixed missed reference to InitForRegularProfile in SyncAppHelper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -19 lines) Patch
M chrome/browser/extensions/extension_process_manager.h View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 3 4 5 chunks +22 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_system.h View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 2 chunks +31 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_app_helper.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_extension_helper.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Greg Spencer (Chromium)
Matt, could you please take a look at this and see if this makes sense? ...
7 years, 3 months ago (2013-08-30 22:29:20 UTC) #1
Matt Perry
https://chromiumcodereview.appspot.com/23618014/diff/5001/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/5001/chrome/browser/extensions/extension_process_manager.cc#newcode307 chrome/browser/extensions/extension_process_manager.cc:307: if (defer_background_host_creation_) Since you're doing this for all background ...
7 years, 3 months ago (2013-08-31 00:22:23 UTC) #2
Greg Spencer (Chromium)
https://chromiumcodereview.appspot.com/23618014/diff/5001/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/5001/chrome/browser/extensions/extension_process_manager.cc#newcode307 chrome/browser/extensions/extension_process_manager.cc:307: if (defer_background_host_creation_) On 2013/08/31 00:22:23, Matt Perry wrote: > ...
7 years, 3 months ago (2013-09-03 19:09:31 UTC) #3
Matt Perry
https://chromiumcodereview.appspot.com/23618014/diff/11001/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/11001/chrome/browser/extensions/extension_process_manager.cc#newcode792 chrome/browser/extensions/extension_process_manager.cc:792: bool ExtensionProcessManager::DeferLoadingBackgroundHosts() const { could you integrate this method ...
7 years, 3 months ago (2013-09-03 19:26:32 UTC) #4
Greg Spencer (Chromium)
https://chromiumcodereview.appspot.com/23618014/diff/11001/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/11001/chrome/browser/extensions/extension_process_manager.cc#newcode792 chrome/browser/extensions/extension_process_manager.cc:792: bool ExtensionProcessManager::DeferLoadingBackgroundHosts() const { On 2013/09/03 19:26:32, Matt Perry ...
7 years, 3 months ago (2013-09-04 21:17:24 UTC) #5
Matt Perry
lgtm
7 years, 3 months ago (2013-09-04 21:29:31 UTC) #6
Greg Spencer (Chromium)
Scott, could I have an OWNERS review for chrome/browser/ui/startup/startup_browser_creator_impl.cc please? Miranda, could I have an ...
7 years, 3 months ago (2013-09-04 21:45:15 UTC) #7
sky
https://chromiumcodereview.appspot.com/23618014/diff/15001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/15001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode396 chrome/browser/ui/startup/startup_browser_creator_impl.cc:396: extensions::ExtensionSystem::Get(profile)->process_manager(); Will this force creation of any extension bits ...
7 years, 3 months ago (2013-09-04 21:55:34 UTC) #8
Greg Spencer (Chromium)
https://chromiumcodereview.appspot.com/23618014/diff/15001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/15001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode396 chrome/browser/ui/startup/startup_browser_creator_impl.cc:396: extensions::ExtensionSystem::Get(profile)->process_manager(); On 2013/09/04 21:55:34, sky wrote: > Will this ...
7 years, 3 months ago (2013-09-04 22:17:34 UTC) #9
Greg Spencer (Chromium)
https://chromiumcodereview.appspot.com/23618014/diff/15001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/15001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode396 chrome/browser/ui/startup/startup_browser_creator_impl.cc:396: extensions::ExtensionSystem::Get(profile)->process_manager(); On 2013/09/04 22:17:35, Greg Spencer (Chromium) wrote: > ...
7 years, 3 months ago (2013-09-04 22:20:24 UTC) #10
Miranda Callahan
profile_manager LGTM with spelling nit. https://chromiumcodereview.appspot.com/23618014/diff/27001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/27001/chrome/browser/profiles/profile_manager.cc#newcode751 chrome/browser/profiles/profile_manager.cc:751: "DeferBackgoundExtensionCreation", nit: s/ackgo/ackgro
7 years, 3 months ago (2013-09-05 12:02:03 UTC) #11
Greg Spencer (Chromium)
https://chromiumcodereview.appspot.com/23618014/diff/27001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://chromiumcodereview.appspot.com/23618014/diff/27001/chrome/browser/profiles/profile_manager.cc#newcode751 chrome/browser/profiles/profile_manager.cc:751: "DeferBackgoundExtensionCreation", On 2013/09/05 12:02:03, Miranda Callahan wrote: > nit: ...
7 years, 3 months ago (2013-09-05 18:33:25 UTC) #12
sky
LGTM
7 years, 3 months ago (2013-09-05 20:36:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/23618014/32001
7 years, 3 months ago (2013-09-05 20:39:20 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-05 21:16:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/23618014/56001
7 years, 3 months ago (2013-09-05 21:20:20 UTC) #16
commit-bot: I haz the power
Change committed as 221621
7 years, 3 months ago (2013-09-06 07:22:01 UTC) #17
James Cook
7 years ago (2013-12-12 19:16:22 UTC) #18
Message was sent while issue was closed.
On 2013/09/06 07:22:01, I haz the power (commit-bot) wrote:
> Change committed as 221621

FYI to future readers - reverted in https://codereview.chromium.org/111253003/

Powered by Google App Engine
This is Rietveld 408576698