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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 5976005: show notification on locale change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 9 years, 11 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 6705e3b7ae1f0974faea9bb5e678ce3c131e11f0..658face4e63fec000b78586abc54cfb755e94fac 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -112,6 +112,8 @@ void Profile::RegisterUserPrefs(PrefService* prefs) {
// in user's profile for other platforms as well.
prefs->RegisterStringPref(prefs::kApplicationLocale, "");
prefs->RegisterStringPref(prefs::kApplicationLocaleBackup, "");
+ prefs->RegisterStringPref(prefs::kApplicationLocaleOverride, "");
+ prefs->RegisterStringPref(prefs::kApplicationLocaleAccepted, "");
#endif
}
@@ -603,6 +605,12 @@ class OffTheRecordProfileImpl : public Profile,
return NULL;
}
+#if defined(OS_CHROMEOS)
+ virtual void ChangeApplicationLocale(
+ const std::string& locale, bool keep_local) {
+ }
+#endif // defined(OS_CHROMEOS)
+
virtual PrefProxyConfigTracker* GetProxyConfigTracker() {
return profile_->GetProxyConfigTracker();
}

Powered by Google App Engine
This is Rietveld 408576698