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

Unified Diff: chrome/browser/extensions/api/preference/preference_api.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: | Created 6 years, 10 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/api/preference/preference_api.h
diff --git a/chrome/browser/extensions/api/preference/preference_api.h b/chrome/browser/extensions/api/preference/preference_api.h
index 313fdc2281dee8ea18044d494c8b47f99d5559f5..0a5f58392f7e939b084a3cc57bf208314221ea59 100644
--- a/chrome/browser/extensions/api/preference/preference_api.h
+++ b/chrome/browser/extensions/api/preference/preference_api.h
@@ -93,7 +93,7 @@ class PreferenceAPI : public PreferenceAPIBase,
public EventRouter::Observer,
public ContentSettingsStore::Observer {
public:
- explicit PreferenceAPI(Profile* profile);
+ explicit PreferenceAPI(content::BrowserContext* context);
virtual ~PreferenceAPI();
// BrowserContextKeyedService implementation.
@@ -103,7 +103,7 @@ class PreferenceAPI : public PreferenceAPIBase,
static ProfileKeyedAPIFactory<PreferenceAPI>* GetFactoryInstance();
// Convenience method to get the PreferenceAPI for a profile.
- static PreferenceAPI* Get(Profile* profile);
+ static PreferenceAPI* Get(content::BrowserContext* context);
// EventRouter::Observer implementation.
virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698