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

Unified Diff: chromeos/ime/component_extension_ime_manager.cc

Issue 495593004: Check the IME component extension's availability on linux_chromeos, so that system fallback VK can … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. 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 cd6ebd5812b82da4ad69de2e61d054e04bb74503..feb03477188c45b3fc18a966aacb1ae1f5d3cbba 100644
--- a/chromeos/ime/component_extension_ime_manager.cc
+++ b/chromeos/ime/component_extension_ime_manager.cc
@@ -108,10 +108,11 @@ bool ComponentExtensionIMEManager::LoadComponentExtensionIME(
Profile* profile,
const std::string& input_method_id) {
ComponentExtensionIME ime;
- if (FindEngineEntry(input_method_id, &ime))
- return delegate_->Load(profile, 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(
« no previous file with comments | « chromeos/ime/component_extension_ime_manager.h ('k') | chromeos/ime/mock_component_extension_ime_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698