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

Side by Side Diff: ui/base/ime/chromeos/component_extension_ime_manager.cc

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/ime/component_extension_ime_manager.h" 5 #include "ui/base/ime/chromeos/component_extension_ime_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "chromeos/chromeos_switches.h" 10 #include "chromeos/chromeos_switches.h"
11 #include "chromeos/ime/extension_ime_util.h" 11 #include "ui/base/ime/chromeos/extension_ime_util.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 namespace { 15 namespace {
16 16
17 // The whitelist for enabling extension based xkb keyboards at login session. 17 // The whitelist for enabling extension based xkb keyboards at login session.
18 const char* kLoginLayoutWhitelist[] = { 18 const char* kLoginLayoutWhitelist[] = {
19 "be", 19 "be",
20 "br", 20 "br",
21 "ca", 21 "ca",
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 bool ComponentExtensionIMEManager::IsInLoginLayoutWhitelist( 231 bool ComponentExtensionIMEManager::IsInLoginLayoutWhitelist(
232 const std::vector<std::string>& layouts) { 232 const std::vector<std::string>& layouts) {
233 for (size_t i = 0; i < layouts.size(); ++i) { 233 for (size_t i = 0; i < layouts.size(); ++i) {
234 if (login_layout_set_.find(layouts[i]) != login_layout_set_.end()) 234 if (login_layout_set_.find(layouts[i]) != login_layout_set_.end())
235 return true; 235 return true;
236 } 236 }
237 return false; 237 return false;
238 } 238 }
239 239
240 } // namespace chromeos 240 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698