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

Side by Side Diff: chromeos/ime/input_method_whitelist.cc

Issue 22980018: Disable non Latin keyboard layout on Lock screen and Sign-in screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test case. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/ime/input_method_manager.h ('k') | chromeos/ime/input_methods.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/input_method_whitelist.h" 5 #include "chromeos/ime/input_method_whitelist.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "chromeos/ime/input_method_descriptor.h" 10 #include "chromeos/ime/input_method_descriptor.h"
(...skipping 28 matching lines...) Expand all
39 39
40 std::vector<std::string> languages; 40 std::vector<std::string> languages;
41 Tokenize(kInputMethods[i].language_code, kLanguageDelimiter, &languages); 41 Tokenize(kInputMethods[i].language_code, kLanguageDelimiter, &languages);
42 DCHECK(!languages.empty()); 42 DCHECK(!languages.empty());
43 43
44 input_methods->push_back(InputMethodDescriptor( 44 input_methods->push_back(InputMethodDescriptor(
45 kInputMethods[i].input_method_id, 45 kInputMethods[i].input_method_id,
46 "", 46 "",
47 layouts, 47 layouts,
48 languages, 48 languages,
49 kInputMethods[i].is_login_keyboard,
49 GURL())); // options page url, not available for non-extension input 50 GURL())); // options page url, not available for non-extension input
50 // method. 51 // method.
51 } 52 }
52 return input_methods.Pass(); 53 return input_methods.Pass();
53 } 54 }
54 55
55 } // namespace input_method 56 } // namespace input_method
56 } // namespace chromeos 57 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/ime/input_method_manager.h ('k') | chromeos/ime/input_methods.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698