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

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_api.cc

Issue 11682005: Remove some Profile-keyed factory boilerplate: management omnibox preference push_messaging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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.cc
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.cc b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
index 207b120dcf1664d3bc49ac162dad9a766726e1f5..a9e49e606594118a03f8fc9989346dcf916a7808 100644
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
@@ -864,6 +864,14 @@ InputImeAPI::InputImeAPI(Profile* profile)
InputImeAPI::~InputImeAPI() {
}
+static base::LazyInstance<ProfileKeyedAPIFactory<InputImeAPI> >
+g_factory = LAZY_INSTANCE_INITIALIZER;
+
+// static
+ProfileKeyedAPIFactory<InputImeAPI>* InputImeAPI::GetFactoryInstance() {
+ return &g_factory.Get();
+}
+
void InputImeAPI::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
@@ -899,13 +907,4 @@ InputImeEventRouter* InputImeAPI::input_ime_event_router() {
return InputImeEventRouter::GetInstance();
}
-static base::LazyInstance<ProfileKeyedAPIFactory<InputImeAPI> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
-
-template <>
-ProfileKeyedAPIFactory<InputImeAPI>*
-ProfileKeyedAPIFactory<InputImeAPI>::GetInstance() {
- return &g_factory.Get();
-}
-
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.h ('k') | chrome/browser/extensions/api/managed_mode/managed_mode_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698