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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 23618014: This defers starting background extension page RenderViews (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged logic into DeferLoadingBackgroundHosts Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/test/integration/sync_extension_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index 3a7b5c32a9b8dcf15459b57acab0c990bc7198e0..1e65793d0b3d40bab4a9bbff860d1963200b9a33 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -32,6 +32,7 @@
#include "chrome/browser/defaults.h"
#include "chrome/browser/extensions/extension_creator.h"
#include "chrome/browser/extensions/extension_service.h"
+#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/extensions/pack_extension_job.h"
#include "chrome/browser/first_run/first_run.h"
#include "chrome/browser/google/google_util.h"
@@ -389,6 +390,12 @@ bool StartupBrowserCreatorImpl::Launch(Profile* profile,
ShellIntegration::MigrateChromiumShortcuts();
#endif // defined(OS_WIN)
+ // If we deferred creation of background extension hosts, we want to create
+ // them now that the session (if any) has been restored.
+ ExtensionProcessManager* process_manager =
+ extensions::ExtensionSystem::Get(profile)->process_manager();
sky 2013/09/04 21:55:34 Will this force creation of any extension bits tha
Greg Spencer (Chromium) 2013/09/04 22:17:35 It shouldn't on systems where extensions are enabl
Greg Spencer (Chromium) 2013/09/04 22:20:25 Err, I mean ENABLE_EXTENSIONS (which is what I rea
+ process_manager->DeferBackgroundHostCreation(false);
+
return true;
}
« no previous file with comments | « chrome/browser/sync/test/integration/sync_extension_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698