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

Unified Diff: chrome/browser/chromeos/net/onc_utils.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/chromeos/net/onc_utils.cc
diff --git a/chrome/browser/chromeos/net/onc_utils.cc b/chrome/browser/chromeos/net/onc_utils.cc
index 2e4194ebb039778d872526c2587c20675a7dfae4..c82b22e53a9912c83aa94cfcfe77b8d6cda89547 100644
--- a/chrome/browser/chromeos/net/onc_utils.cc
+++ b/chrome/browser/chromeos/net/onc_utils.cc
@@ -161,7 +161,7 @@ class UserStringSubstitution : public chromeos::onc::StringSubstitution {
if (placeholder == ::onc::substitutes::kLoginIDField)
*substitute = user_->GetAccountName(false);
else if (placeholder == ::onc::substitutes::kEmailField)
- *substitute = user_->email();
+ *substitute = user_->GetUserID().GetUserEmail();
else
return false;
return true;

Powered by Google App Engine
This is Rietveld 408576698