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

Unified Diff: components/user_manager/user_info_impl.cc

Issue 2450183002: Rename UserInfo method GetEmail to GetDisplayEmail. (Closed)
Patch Set: Fix test Created 4 years, 2 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: components/user_manager/user_info_impl.cc
diff --git a/components/user_manager/user_info_impl.cc b/components/user_manager/user_info_impl.cc
index afb2e9de73d99042f9abe60cd01ba01e9848fd2e..7cadadf54858f78b4edb021d9a05bb5d9eec7b6a 100644
--- a/components/user_manager/user_info_impl.cc
+++ b/components/user_manager/user_info_impl.cc
@@ -7,11 +7,11 @@
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "components/signin/core/account_id/account_id.h"
+#include "components/user_manager/user_names.h"
namespace user_manager {
-UserInfoImpl::UserInfoImpl()
- : account_id_(AccountId::FromUserEmail("stub-user@domain.com")) {}
+UserInfoImpl::UserInfoImpl() : account_id_(StubAccountId()) {}
UserInfoImpl::~UserInfoImpl() {
}
@@ -24,8 +24,8 @@ base::string16 UserInfoImpl::GetGivenName() const {
return base::UTF8ToUTF16("Stub");
}
-std::string UserInfoImpl::GetEmail() const {
- return account_id_.GetUserEmail();
+std::string UserInfoImpl::GetDisplayEmail() const {
+ return account_id_.GetUserEmail(); // Migrated
}
const AccountId& UserInfoImpl::GetAccountId() const {

Powered by Google App Engine
This is Rietveld 408576698