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

Unified Diff: components/user_manager/user_info_impl.cc

Issue 2450183002: Rename UserInfo method GetEmail to GetDisplayEmail. (Closed)
Patch Set: Fixed build in a dependent CL. 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..529fba442909575da38dd5d24bba7b141033cffb 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_(chromeos::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 {
« components/user_manager/fake_user_manager.cc ('K') | « components/user_manager/user_info_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698