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

Unified Diff: chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Profile helper function, rebase Created 9 years, 4 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/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..f0b3ae42da4fec33ff4f923b846fc10d0899fdf1 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,7 @@ string16 CrosLanguageOptionsHandler::GetProductName() {
void CrosLanguageOptionsHandler::SetApplicationLocale(
const std::string& language_code) {
- web_ui_->GetProfile()->ChangeAppLocale(
+ Profile::FromWebUI(web_ui_)->ChangeAppLocale(
language_code, Profile::APP_LOCALE_CHANGED_VIA_SETTINGS);
}

Powered by Google App Engine
This is Rietveld 408576698