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

Unified Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/ui/webui/help/help_handler.cc
diff --git a/chrome/browser/ui/webui/help/help_handler.cc b/chrome/browser/ui/webui/help/help_handler.cc
index 193c960b7430a617f000a9b7982c5fc79254b61a..482fed4d7ba79315c6d38d8b3e2dfabbdc44aa13 100644
--- a/chrome/browser/ui/webui/help/help_handler.cc
+++ b/chrome/browser/ui/webui/help/help_handler.cc
@@ -108,7 +108,7 @@ bool CanChangeChannel(Profile* profile) {
const user_manager::User* user =
profile ? chromeos::ProfileHelper::Get()->GetUserByProfile(profile)
: nullptr;
- std::string email = user ? user->email() : std::string();
+ std::string email = user ? user->GetUserID().GetUserEmail() : std::string();
size_t at_pos = email.find('@');
if (at_pos != std::string::npos && at_pos + 1 < email.length())
domain = email.substr(email.find('@') + 1);

Powered by Google App Engine
This is Rietveld 408576698