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

Unified Diff: chrome/browser/chromeos/login/user_manager.h

Issue 23095006: If user profile doesn't contain language setting, default to his Google account settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Multi Profile support. Created 7 years, 3 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/chromeos/login/user_manager.h
diff --git a/chrome/browser/chromeos/login/user_manager.h b/chrome/browser/chromeos/login/user_manager.h
index 08b030002c5710609e0e53e8a1a44be58ce1b091..a126932ef050f6146d7e7b707aad70db9355bf65 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -199,6 +199,11 @@ class UserManager {
virtual const User* GetActiveUser() const = 0;
virtual User* GetActiveUser() = 0;
+ // Returns primary user. There could be multiple users logged in at the
+ // same time, but only the first one defines locale and other login session
+ // parameters.
+ virtual const User* GetPrimaryUser() const = 0;
+
// Saves user's oauth token status in local state preferences.
virtual void SaveUserOAuthStatus(
const std::string& username,
@@ -209,6 +214,11 @@ class UserManager {
virtual void SaveUserDisplayName(const std::string& username,
const string16& display_name) = 0;
+ // Updates data upon User Account download.
+ virtual void UpdateUserAccountData(const std::string& username,
+ const string16& display_name,
+ const std::string& locale) = 0;
+
// Returns the display name for user |username| if it is known (was
// previously set by a |SaveUserDisplayName| call).
// Otherwise, returns an empty string.

Powered by Google App Engine
This is Rietveld 408576698