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

Unified Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.cc

Issue 210903003: Implemented system tray UI for new account management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments addressed. Created 6 years, 9 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/ash/session_state_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
index 2341781f58215f13df01b9658a63e56a04f33597..715f38e45b3d152860e2265d850488dd3fba1269 100644
--- a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
@@ -118,6 +118,14 @@ const base::string16 SessionStateDelegateChromeos::GetUserDisplayName(
GetLRULoggedInUsers()[index]->display_name();
}
+const base::string16 SessionStateDelegateChromeos::GetUserGivenName(
+ ash::MultiProfileIndex index) const {
+ DCHECK_LT(index, NumberOfLoggedInUsers());
+ return chromeos::UserManager::Get()
+ ->GetLRULoggedInUsers()[index]
oshima 2014/03/31 23:07:52 doesn't this line fit the previous line?
dzhioev (left Google) 2014/04/01 17:25:02 That is how 'git cl format' works. If we have chai
oshima 2014/04/02 00:14:14 ok ok as it is.
+ ->given_name();
+}
+
const std::string SessionStateDelegateChromeos::GetUserEmail(
ash::MultiProfileIndex index) const {
DCHECK_LT(index, NumberOfLoggedInUsers());

Powered by Google App Engine
This is Rietveld 408576698