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

Unified Diff: chrome/browser/extensions/api/preference/chrome_direct_setting_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/chrome_direct_setting_api.h
diff --git a/chrome/browser/extensions/api/preference/chrome_direct_setting_api.h b/chrome/browser/extensions/api/preference/chrome_direct_setting_api.h
index 1acb3a5ebbc829743f490d5ccb6da972e265956f..44076c269f47db3b5b2614790e6ec791e73ba5c2 100644
--- a/chrome/browser/extensions/api/preference/chrome_direct_setting_api.h
+++ b/chrome/browser/extensions/api/preference/chrome_direct_setting_api.h
@@ -11,13 +11,17 @@
class Profile;
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
namespace chromedirectsetting {
class ChromeDirectSettingAPI : public ProfileKeyedAPI,
public EventRouter::Observer {
public:
- explicit ChromeDirectSettingAPI(Profile* profile);
+ explicit ChromeDirectSettingAPI(content::BrowserContext* context);
virtual ~ChromeDirectSettingAPI();
@@ -34,7 +38,7 @@ class ChromeDirectSettingAPI : public ProfileKeyedAPI,
bool IsPreferenceOnWhitelist(const std::string& pref_key);
// Convenience method to get the ChromeDirectSettingAPI for a profile.
- static ChromeDirectSettingAPI* Get(Profile* profile);
+ static ChromeDirectSettingAPI* Get(content::BrowserContext* context);
private:
friend class ProfileKeyedAPIFactory<ChromeDirectSettingAPI>;
@@ -57,4 +61,3 @@ class ChromeDirectSettingAPI : public ProfileKeyedAPI,
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_CHROME_DIRECT_SETTING_API_H__
-

Powered by Google App Engine
This is Rietveld 408576698