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

Unified Diff: chrome/browser/chromeos/login/login_display_host_impl.cc

Issue 139803010: Support comma separated hardware keyboard layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile failure Created 6 years, 10 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/login/login_display_host_impl.cc
diff --git a/chrome/browser/chromeos/login/login_display_host_impl.cc b/chrome/browser/chromeos/login/login_display_host_impl.cc
index 5e1d4b97817f09c77ad047a47f3ebb5890ce3b02..73c112f287d81726e0ac00438e13b94b16905f61 100644
--- a/chrome/browser/chromeos/login/login_display_host_impl.cc
+++ b/chrome/browser/chromeos/login/login_display_host_impl.cc
@@ -124,6 +124,7 @@ const int64 kPolicyServiceInitializationDelayMilliseconds = 100;
// The information will be used in InputMethodUtil::GetHardwareInputMethodId().
void DetermineAndSaveHardwareKeyboard(const std::string& locale,
const std::string& oem_layout) {
+ LOG(ERROR) << oem_layout;
Alexander Alekseev 2014/02/11 13:36:02 Remove debug ?
Seigo Nonaka 2014/02/12 13:21:02 Oops, I'm sorry. Removed. On 2014/02/11 13:36:02,
std::string layout;
if (!oem_layout.empty()) {
// If the OEM layout information is provided, use it.
@@ -1139,8 +1140,10 @@ void ShowLoginWizard(const std::string& first_screen_name) {
if (!prefs->HasPrefPath(prefs::kApplicationLocale)) {
std::string locale = chromeos::StartupUtils::GetInitialLocale();
prefs->SetString(prefs::kApplicationLocale, locale);
- manager->EnableLoginLayouts(
- locale, manager->GetInputMethodUtil()->GetHardwareInputMethodId());
+ std::vector<std::string> hardware_layouts;
+ manager->GetInputMethodUtil()->GetHardwareInputMethodIds(
+ &hardware_layouts);
+ manager->EnableLoginLayouts(locale, hardware_layouts);
base::ThreadRestrictions::ScopedAllowIO allow_io;
const std::string loaded_locale =
ResourceBundle::GetSharedInstance().ReloadLocaleResources(locale);

Powered by Google App Engine
This is Rietveld 408576698