Index: chrome/browser/chromeos/login/user.cc |
diff --git a/chrome/browser/chromeos/login/user.cc b/chrome/browser/chromeos/login/user.cc |
index f165e552d665c7c44311f1a12ebea77038f644dd..36cd5a5be952658da09a082645ec6b761263d2ba 100644 |
--- a/chrome/browser/chromeos/login/user.cc |
+++ b/chrome/browser/chromeos/login/user.cc |
@@ -168,6 +168,22 @@ void UserContext::CopyFrom(const UserContext& other) { |
auth_flow = other.auth_flow; |
} |
+std::string User::GetEmail() const { |
+ return display_email(); |
+} |
+ |
+base::string16 User::GetGivenName() const { |
+ return given_name_; |
+} |
+ |
+const gfx::ImageSkia& User::GetImage() const { |
+ return user_image_.image(); |
+} |
+ |
+std::string User::GetID() const { |
+ return email(); |
+} |
+ |
base::string16 User::GetDisplayName() const { |
Nikita (slow)
2014/04/29 13:59:27
nit: Move this up a bit, after GetEmail()
oshima
2014/04/29 17:59:54
Done.
|
// Fallback to the email account name in case display name haven't been set. |
return display_name_.empty() ? |