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

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

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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 44076c269f47db3b5b2614790e6ec791e73ba5c2..e4d517e178061189e0a6abd20c6626a4b0b3bd26 100644
--- a/chrome/browser/extensions/api/preference/chrome_direct_setting_api.h
+++ b/chrome/browser/extensions/api/preference/chrome_direct_setting_api.h
@@ -6,7 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_API_PREFERENCE_CHROME_DIRECT_SETTING_API_H__
#include "base/prefs/pref_change_registrar.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
class Profile;
@@ -18,7 +18,7 @@ class BrowserContext;
namespace extensions {
namespace chromedirectsetting {
-class ChromeDirectSettingAPI : public ProfileKeyedAPI,
+class ChromeDirectSettingAPI : public BrowserContextKeyedAPI,
public EventRouter::Observer {
public:
explicit ChromeDirectSettingAPI(content::BrowserContext* context);
@@ -28,8 +28,9 @@ class ChromeDirectSettingAPI : public ProfileKeyedAPI,
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<ChromeDirectSettingAPI>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<ChromeDirectSettingAPI>*
+ GetFactoryInstance();
// EventRouter::Observer implementation.
virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE;
@@ -41,9 +42,9 @@ class ChromeDirectSettingAPI : public ProfileKeyedAPI,
static ChromeDirectSettingAPI* Get(content::BrowserContext* context);
private:
- friend class ProfileKeyedAPIFactory<ChromeDirectSettingAPI>;
+ friend class BrowserContextKeyedAPIFactory<ChromeDirectSettingAPI>;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name();
void OnPrefChanged(PrefService* pref_service, const std::string& pref_key);

Powered by Google App Engine
This is Rietveld 408576698