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

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

Issue 8773046: [cros] Display emails of users are stored in a separate dictionary in Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years 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/chromeos/login/user.cc ('k') | chrome/browser/chromeos/login/user_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3c324d6c542308af0783f5593f7a23c03f8552e9..7746f138309fb597734b83123ab94405ffe39dc3 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -83,8 +83,15 @@ class UserManager : public ProfileDownloaderDelegate,
void SaveUserOAuthStatus(const std::string& username,
User::OAuthTokenStatus oauth_token_status);
- // Gets user's oauth token status in local state preferences.
- User::OAuthTokenStatus GetUserOAuthStatus(const std::string& username) const;
+ // Save user's displayed (non-canonical) email in local state preferences.
+ // Ignored If there is no such user.
+ void SaveUserDisplayEmail(const std::string& username,
+ const std::string& display_email);
+
+ // Returns the display email for user |username| if it is known (was
+ // previously set by a |SaveUserDisplayEmail| call).
+ // Otherwise, returns |username| itself.
+ std::string GetUserDisplayEmail(const std::string& username) const;
// Sets user image to the default image with index |image_index|, sends
// LOGIN_USER_IMAGE_CHANGED notification and updates Local State.
@@ -169,6 +176,9 @@ class UserManager : public ProfileDownloaderDelegate,
// Notifies on new user session.
void NotifyOnLogin();
+ // Reads user's oauth token status from local state preferences.
+ User::OAuthTokenStatus LoadUserOAuthStatus(const std::string& username) const;
+
// Sets one of the default images for the specified user and saves this
// setting in local state.
// Does not send LOGIN_USER_IMAGE_CHANGED notification.
« no previous file with comments | « chrome/browser/chromeos/login/user.cc ('k') | chrome/browser/chromeos/login/user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698