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

Unified Diff: chrome/browser/chromeos/login/wizard_controller_browsertest.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/wizard_controller_browsertest.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
index 6f7280a1a4e8e86fc744094ff4e20af46813339a..0d431e4ec2999bbce223ed670ec613d01c601e34 100644
--- a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
+++ b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
@@ -147,7 +147,8 @@ void RunSwitchLanguageTest(const std::string& locale,
SwitchLanguageTestData data;
locale_util::SwitchLanguageCallback callback(
base::Bind(&OnLocaleSwitched, base::Unretained(&data)));
- locale_util::SwitchLanguage(locale, true, false, callback);
+ locale_util::SwitchLanguage(locale, true, false, callback,
+ ProfileManager::GetActiveUserProfile());
// Token writing moves control to BlockingPool and back.
content::RunAllBlockingPoolTasksUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698