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

Unified Diff: chromeos/ime/component_extension_ime_manager.cc

Issue 419293002: IME refactoring: ChromeOS introduce input methods State. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 6 years, 4 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: chromeos/ime/component_extension_ime_manager.cc
diff --git a/chromeos/ime/component_extension_ime_manager.cc b/chromeos/ime/component_extension_ime_manager.cc
index f77421918c29bff0346364840cd9875e36069574..0a786a30e7e67998af875387f7a9d422699d0034 100644
--- a/chromeos/ime/component_extension_ime_manager.cc
+++ b/chromeos/ime/component_extension_ime_manager.cc
@@ -91,20 +91,22 @@ void ComponentExtensionIMEManager::Initialize(
}
bool ComponentExtensionIMEManager::LoadComponentExtensionIME(
+ Profile* profile,
const std::string& input_method_id) {
ComponentExtensionIME ime;
if (FindEngineEntry(input_method_id, &ime, NULL))
- return delegate_->Load(ime.id, ime.manifest, ime.path);
+ return delegate_->Load(profile, ime.id, ime.manifest, ime.path);
else
return false;
}
bool ComponentExtensionIMEManager::UnloadComponentExtensionIME(
+ Profile* profile,
const std::string& input_method_id) {
ComponentExtensionIME ime;
if (!FindEngineEntry(input_method_id, &ime, NULL))
return false;
- delegate_->Unload(ime.id, ime.path);
+ delegate_->Unload(profile, ime.id, ime.path);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698