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

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

Issue 1901383002: Revert "Notifies the IME extension for IME ready with onActivate/onFocus events at start." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cf3996c4770ff6dae0cc04ee53a09cf178008b37..8cef3353a1b371000adf0bb906015cae3b06db2a 100644
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
@@ -402,21 +402,6 @@ InputImeAPI::~InputImeAPI() {
registrar_.RemoveAll();
}
-void InputImeAPI::OnListenerAdded(const EventListenerInfo& details) {
- if (!details.browser_context)
- return;
- InputImeEventRouter* event_router =
- GetInputImeEventRouter(Profile::FromBrowserContext(
- Profile::FromBrowserContext(details.browser_context)));
- InputMethodEngineBase* engine =
- event_router ? event_router->GetActiveEngine(details.extension_id)
- : nullptr;
-
- // Notifies the IME extension for IME ready with onActivate/onFocus events.
- if (engine)
- engine->Enable(engine->GetActiveComponentId());
-}
-
static base::LazyInstance<BrowserContextKeyedAPIFactory<InputImeAPI> >
g_factory = LAZY_INSTANCE_INITIALIZER;
« no previous file with comments | « no previous file | chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698