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

Unified Diff: chrome/browser/chromeos/input_method/input_method_util.cc

Issue 308623002: Initialize IMF with a whitelist of input methods so that login screen doesn't need to wait for comp… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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: chrome/browser/chromeos/input_method/input_method_util.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_util.cc b/chrome/browser/chromeos/input_method/input_method_util.cc
index d4355db2c4b327f2010c29f568e2e1eade3a60cf..2c4f36c1db11ea238e17e372746ad7053b922a41 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.cc
+++ b/chrome/browser/chromeos/input_method/input_method_util.cc
@@ -879,18 +879,20 @@ void InputMethodUtil::ReloadInternalMaps() {
for (size_t i = 0; i < supported_input_methods_->size(); ++i) {
const InputMethodDescriptor& input_method =
supported_input_methods_->at(i);
+ const std::string input_method_id =
+ extension_ime_util::GetInputMethodIDByKeyboardLayout(input_method.id());
const std::vector<std::string>& language_codes =
input_method.language_codes();
for (size_t i = 0; i < language_codes.size(); ++i) {
language_code_to_ids_.insert(
- std::make_pair(language_codes[i], input_method.id()));
+ std::make_pair(language_codes[i], input_method_id));
// Remember the pairs.
id_to_language_code_.insert(
- std::make_pair(input_method.id(), language_codes[i]));
+ std::make_pair(input_method_id, language_codes[i]));
}
id_to_descriptor_.insert(
- std::make_pair(input_method.id(), input_method));
- if (IsKeyboardLayout(input_method.id())) {
+ std::make_pair(input_method_id, input_method));
+ if (IsKeyboardLayout(input_method_id)) {
xkb_id_to_descriptor_.insert(
std::make_pair(input_method.GetPreferredKeyboardLayout(),
input_method));

Powered by Google App Engine
This is Rietveld 408576698