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

Unified Diff: chrome/browser/ui/webui/settings/profile_info_handler.cc

Issue 2471993002: Remove calls to User::email() from chrome/browser/ui/webui/* (Closed)
Patch Set: Created 4 years, 1 month 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/webui/settings/profile_info_handler.cc
diff --git a/chrome/browser/ui/webui/settings/profile_info_handler.cc b/chrome/browser/ui/webui/settings/profile_info_handler.cc
index 03e9d1cd64639849819ca7185ea77b371c917d10..2acd3c5944ae336f3c84a46018cea0d340921efd 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
@@ -145,7 +145,7 @@ ProfileInfoHandler::GetAccountNameAndIcon() const {
const user_manager::User* user =
chromeos::ProfileHelper::Get()->GetUserByProfile(profile_);
if (user && (user->GetType() != user_manager::USER_TYPE_GUEST))
- name = user->email();
+ name = user->GetAccountId().GetUserEmail();
}
if (!name.empty())
name = gaia::SanitizeEmail(gaia::CanonicalizeEmail(name));

Powered by Google App Engine
This is Rietveld 408576698