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

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

Issue 23531054: Don't switch browser locale on secondary user login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: previous upload failed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index 552b5af58e5e47496b482820f9352f3597301649..aa2e584e3090ca8f3bfca23d93edc8246a2aaed7 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -378,7 +378,9 @@ void LoginUtilsImpl::InitProfilePreferences(Profile* user_profile,
google_services_username.SetValue(user ? user->display_email() : email);
}
- RespectLocalePreference(user_profile);
+ // For multi-profile case don't apply profile local because it is not safe.
+ if (UserManager::Get()->GetLoggedInUsers().size() == 1)
Mr4D (OOO till 08-26) 2013/09/13 23:41:36 Don't know how this plays into it, but while debug
Dmitry Polukhin 2013/09/14 00:28:16 Good catch! It is place where we can switch input
+ RespectLocalePreference(user_profile);
}
void LoginUtilsImpl::InitSessionRestoreStrategy() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698