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(); |