Index: chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc |
index 69e1fecbf30fa5ffe5abd65b23b6ff2023a6c8ff..8ac331854fd42a21f587052830ab8cad5c64ea1e 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc |
@@ -182,7 +182,9 @@ string16 CrosLanguageOptionsHandler::GetProductName() { |
void CrosLanguageOptionsHandler::SetApplicationLocale( |
const std::string& language_code) { |
- web_ui_->GetProfile()->ChangeAppLocale( |
+ Profile* profile = |
+ Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context()); |
+ profile->ChangeAppLocale( |
language_code, Profile::APP_LOCALE_CHANGED_VIA_SETTINGS); |
} |