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

Unified Diff: components/user_manager/user_info_impl.cc

Issue 1454153002: Revert of This CL replaces e-mail with AccountId on user selection screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/user_manager/user_info_impl.h ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cf6d2ad3306b39b55ae0e96027597ceebb3a5e34 100644
--- a/components/user_manager/user_info_impl.cc
+++ b/components/user_manager/user_info_impl.cc
@@ -10,8 +10,8 @@
namespace user_manager {
-UserInfoImpl::UserInfoImpl()
- : account_id_(AccountId::FromUserEmail("stub-user@domain.com")) {}
+UserInfoImpl::UserInfoImpl() {
+}
UserInfoImpl::~UserInfoImpl() {
}
@@ -25,11 +25,11 @@
}
std::string UserInfoImpl::GetEmail() const {
- return account_id_.GetUserEmail();
+ return "stub-user@domain.com";
}
-const AccountId& UserInfoImpl::GetAccountId() const {
- return account_id_;
+AccountId UserInfoImpl::GetAccountId() const {
+ return AccountId::FromUserEmail(GetEmail());
}
const gfx::ImageSkia& UserInfoImpl::GetImage() const {
« no previous file with comments | « components/user_manager/user_info_impl.h ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698