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

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_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/input_ime/input_ime_api.h
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.h b/chrome/browser/extensions/api/input_ime/input_ime_api.h
index 6b2acaff9a50e452b206c6c37b02e6fcd59d55fe..ad6282de435e3220fbbadee7f488a70ae419599a 100644
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.h
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.h
@@ -12,10 +12,10 @@
#include "base/memory/singleton.h"
#include "base/values.h"
#include "chrome/browser/chromeos/input_method/input_method_engine_interface.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/extension_function.h"
#include "extensions/common/extension.h"
@@ -213,14 +213,14 @@ class InputImeHideInputViewFunction : public AsyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
-class InputImeAPI : public ProfileKeyedAPI,
+class InputImeAPI : public BrowserContextKeyedAPI,
public content::NotificationObserver {
public:
explicit InputImeAPI(content::BrowserContext* context);
virtual ~InputImeAPI();
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<InputImeAPI>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<InputImeAPI>* GetFactoryInstance();
// content::NotificationObserver implementation.
virtual void Observe(int type,
@@ -228,10 +228,10 @@ class InputImeAPI : public ProfileKeyedAPI,
const content::NotificationDetails& details) OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<InputImeAPI>;
+ friend class BrowserContextKeyedAPIFactory<InputImeAPI>;
InputImeEventRouter* input_ime_event_router();
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "InputImeAPI";
}
« no previous file with comments | « chrome/browser/extensions/api/input/input.cc ('k') | chrome/browser/extensions/api/input_ime/input_ime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698