Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chromeos / ime / component_extension_ime_manager.cc
index 74a2e09..feb0347 100644 (file)
@@ -105,20 +105,23 @@ 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);
-  else
-    return false;
+  if (FindEngineEntry(input_method_id, &ime)) {
+    delegate_->Load(profile, ime.id, ime.manifest, ime.path);
+    return true;
+  }
+  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;
 }