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

Unified Diff: chrome/browser/chromeos/login/user.cc

Issue 10541036: Show account part of the display email when real name is not available. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comments Created 8 years, 6 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/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user.cc
diff --git a/chrome/browser/chromeos/login/user.cc b/chrome/browser/chromeos/login/user.cc
index 4116003deb7bb27d666675e42949b387911a721c..a536970f640cdfa0a41f5086f08ba0efbd1085e5 100644
--- a/chrome/browser/chromeos/login/user.cc
+++ b/chrome/browser/chromeos/login/user.cc
@@ -66,8 +66,11 @@ void User::SetWallpaperThumbnail(const SkBitmap& wallpaper_thumbnail) {
wallpaper_thumbnail_ = wallpaper_thumbnail;
}
-std::string User::GetAccountName() const {
- return GetUserName(email_);
+std::string User::GetAccountName(bool use_display_email) const {
+ if (use_display_email && !display_email_.empty())
+ return GetUserName(display_email_);
+ else
+ return GetUserName(email_);
}
string16 User::GetDisplayName() const {
« no previous file with comments | « chrome/browser/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698