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

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

Issue 6248017: Do not use local override for language settings: always sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bs removed 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
« no previous file with comments | « chrome/browser/dom_ui/options/language_options_handler.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index e13c0b367d98a73ffd0ee89692461cbc98e87440..549cbacfbf24743ba1315ac9fb085fabc2afb29f 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -485,10 +485,20 @@ class Profile {
virtual policy::ProfilePolicyContext* GetPolicyContext() = 0;
#if defined(OS_CHROMEOS)
- // Changes application locale.
- // "Keep local" means that changes should not be propagated to other devices.
- virtual void ChangeApplicationLocale(
- const std::string& locale, bool keep_local) = 0;
+ enum AppLocaleChangedVia {
+ // Caused by chrome://settings change.
+ APP_LOCALE_CHANGED_VIA_SETTINGS,
+ // Locale has been reverted via LocaleChangeGuard.
+ APP_LOCALE_CHANGED_VIA_REVERT,
+ // From login screen.
+ APP_LOCALE_CHANGED_VIA_LOGIN,
+ // Source unknown.
+ APP_LOCALE_CHANGED_VIA_UNKNOWN
+ };
+
+ // Changes application locale for a profile.
+ virtual void ChangeAppLocale(
+ const std::string& locale, AppLocaleChangedVia via) = 0;
// Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created.
virtual chromeos::ProxyConfigServiceImpl*
« no previous file with comments | « chrome/browser/dom_ui/options/language_options_handler.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698