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

Unified Diff: chrome/browser/extensions/extension_prefs.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
Index: chrome/browser/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index f7130a59fdc44f84792da61b3c372c0e5796641d..6906f9019964aa1fa7ddc5a8fc3641c4e28be442 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -24,7 +24,10 @@
class ExtensionPrefValueMap;
class PrefService;
-class Profile;
+
+namespace content {
+class BrowserContext;
+}
namespace user_prefs {
class PrefRegistrySyncable;
@@ -158,8 +161,8 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
virtual ~ExtensionPrefs();
- // Convenience function to get the ExtensionPrefs for a Profile.
- static ExtensionPrefs* Get(Profile* profile);
+ // Convenience function to get the ExtensionPrefs for a BrowserContext.
+ static ExtensionPrefs* Get(content::BrowserContext* context);
// Returns all installed extensions from extension preferences provided by
// |pref_service|. This is exposed for ProtectedPrefsWatcher because it needs
« no previous file with comments | « chrome/browser/extensions/extension_pref_value_map_factory.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698