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

Unified Diff: chrome/browser/extensions/api/hotword_private/hotword_private_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/hotword_private/hotword_private_api.h
diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
index 00201be6d7f92885f2c145b6074ee705d60a9517..31ec13fdf6955cdfa233d1fc8285e29d96f5a3d4 100644
--- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
+++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
@@ -7,9 +7,9 @@
#include "base/prefs/pref_change_registrar.h"
#include "base/values.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/common/extensions/api/hotword_private.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
class Profile;
@@ -17,21 +17,21 @@ namespace extensions {
// Listens for changes in disable/enabled state and forwards as an extension
// event.
-class HotwordPrivateEventService : public ProfileKeyedAPI {
+class HotwordPrivateEventService : public BrowserContextKeyedAPI {
public:
explicit HotwordPrivateEventService(content::BrowserContext* context);
virtual ~HotwordPrivateEventService();
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
virtual void Shutdown() OVERRIDE;
- static ProfileKeyedAPIFactory<HotwordPrivateEventService>*
+ static BrowserContextKeyedAPIFactory<HotwordPrivateEventService>*
GetFactoryInstance();
static const char* service_name();
void OnEnabledChanged(const std::string& pref_name);
private:
- friend class ProfileKeyedAPIFactory<HotwordPrivateEventService>;
+ friend class BrowserContextKeyedAPIFactory<HotwordPrivateEventService>;
void SignalEvent();

Powered by Google App Engine
This is Rietveld 408576698