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

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

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix initial locale load, when no user is active yet. Created 5 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/login/ui/login_display_host_impl.cc
diff --git a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
index 12bba58890e169ab08b103b67dfb0136fec9d379..454f01c42846ece10d7383812394d1237bd4f715 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
@@ -1282,8 +1282,8 @@ void ShowLoginWizard(const std::string& first_screen_name) {
base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass())));
// Load locale keyboards here. Hardware layout would be automatically enabled.
- locale_util::SwitchLanguage(
- locale, true, true /* login_layouts_only */, callback);
+ locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */,
+ callback, ProfileManager::GetActiveUserProfile());
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698