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

Unified Diff: chrome/browser/ui/webui/help/help_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/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 c708d957a3a8f73e93ad5441d39e6e7484868221..dd0997705df917e6bf4f6f2f7c005a9ebc58a161 100644
--- a/chrome/browser/ui/webui/help/help_handler.cc
+++ b/chrome/browser/ui/webui/help/help_handler.cc
@@ -129,7 +129,8 @@ 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->GetAccountId().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