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

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: Unit test fixed. Re-sorted methods of StateImpl and IMM. 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 74a2e09cf4c1d5d764e2050eef6399db41ea73ea..cd6ebd5812b82da4ad69de2e61d054e04bb74503 100644
--- a/chromeos/ime/component_extension_ime_manager.cc
+++ b/chromeos/ime/component_extension_ime_manager.cc
@@ -105,20 +105,22 @@ void ComponentExtensionIMEManager::Initialize(
}
bool ComponentExtensionIMEManager::LoadComponentExtensionIME(
+ Profile* profile,
const std::string& input_method_id) {
ComponentExtensionIME ime;
if (FindEngineEntry(input_method_id, &ime))
- 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))
return false;
- delegate_->Unload(ime.id, ime.path);
+ delegate_->Unload(profile, ime.id, ime.path);
return true;
}
« no previous file with comments | « chromeos/ime/component_extension_ime_manager.h ('k') | chromeos/ime/component_extension_ime_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698