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

Unified Diff: chrome/browser/extensions/extension_system.h

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
Index: chrome/browser/extensions/extension_system.h
diff --git a/chrome/browser/extensions/extension_system.h b/chrome/browser/extensions/extension_system.h
index 50952a10db7e8e1958b91770f21b38c88ae8af52..8a400705c20948a8ebed291af727510f9fa610a5 100644
--- a/chrome/browser/extensions/extension_system.h
+++ b/chrome/browser/extensions/extension_system.h
@@ -52,8 +52,12 @@ class ExtensionSystem : public BrowserContextKeyedService {
// Initializes extensions machinery.
// Component extensions are always enabled, external and user extensions
- // are controlled by |extensions_enabled|.
- virtual void InitForRegularProfile(bool extensions_enabled) = 0;
+ // are controlled by |extensions_enabled|. If |defer_background_creation| is
+ // true, then creation of background extension RenderViews will be deferred
+ // until ExtensionProcessManager::DeferBackgroundHostCreation is called with
+ // |defer| set to false.
+ virtual void InitForRegularProfile(bool extensions_enabled,
+ bool defer_background_creation) = 0;
// The ExtensionService is created at startup.
virtual ExtensionService* extension_service() = 0;
@@ -125,7 +129,8 @@ class ExtensionSystemImpl : public ExtensionSystem {
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
- virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE;
+ virtual void InitForRegularProfile(bool extensions_enabled,
+ bool defer_background_creation) OVERRIDE;
virtual ExtensionService* extension_service() OVERRIDE; // shared
virtual ManagementPolicy* management_policy() OVERRIDE; // shared

Powered by Google App Engine
This is Rietveld 408576698