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

Unified Diff: extensions/browser/extensions_browser_client.h

Issue 89253002: Remove ExtensionPrefFactory's dependency on Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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/extensions/extension_toolbar_model_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extensions_browser_client.h
diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h
index 6331dae5c278279c3e9d14bae0882ec7298f4681..61641a7931abcc21f4bd1c1107c832a3c2b84747 100644
--- a/extensions/browser/extensions_browser_client.h
+++ b/extensions/browser/extensions_browser_client.h
@@ -7,6 +7,9 @@
#include "base/memory/scoped_ptr.h"
+class CommandLine;
+class PrefService;
+
namespace content {
class BrowserContext;
}
@@ -28,6 +31,11 @@ class ExtensionsBrowserClient {
// Returns true if the embedder has started shutting down.
virtual bool IsShuttingDown() = 0;
+ // Returns true if extensions have been disabled (e.g. via a command-line flag
+ // or preference).
+ virtual bool AreExtensionsDisabled(const CommandLine& command_line,
+ content::BrowserContext* context) = 0;
+
// Returns true if the |context| is known to the embedder.
virtual bool IsValidContext(content::BrowserContext* context) = 0;
@@ -51,6 +59,10 @@ class ExtensionsBrowserClient {
virtual content::BrowserContext* GetOriginalContext(
content::BrowserContext* context) = 0;
+ // Returns the PrefService associated with |context|.
+ virtual PrefService* GetPrefServiceForContext(
+ content::BrowserContext* context) = 0;
+
// Returns true if loading background pages should be deferred.
virtual bool DeferLoadingBackgroundHosts(
content::BrowserContext* context) const = 0;
« no previous file with comments | « chrome/browser/extensions/extension_toolbar_model_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698