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

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

Issue 3579011: Chrome OS: make language per user. (Closed)
Patch Set: arraysize Created 10 years, 1 month 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/language_switch_menu.cc
diff --git a/chrome/browser/chromeos/login/language_switch_menu.cc b/chrome/browser/chromeos/login/language_switch_menu.cc
index 3d8bcbceb925c4cceb76ef3cdf9513c1e86041f1..6ec9db142b31cba82188c288095731ba50bb5fae 100644
--- a/chrome/browser/chromeos/login/language_switch_menu.cc
+++ b/chrome/browser/chromeos/login/language_switch_menu.cc
@@ -78,6 +78,9 @@ void LanguageSwitchMenu::SetFirstLevelMenuWidth(int width) {
// static
void LanguageSwitchMenu::SwitchLanguage(const std::string& locale) {
+ if (g_browser_process->GetApplicationLocale() == locale) {
+ return;
+ }
// Save new locale.
DCHECK(g_browser_process);
Denis Lagno 2010/11/11 19:48:03 move this DCHECK before anything else
Denis Lagno 2010/11/12 11:51:35 Done.
PrefService* prefs = g_browser_process->local_state();

Powered by Google App Engine
This is Rietveld 408576698