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

Unified Diff: components/user_manager/user_info_impl.cc

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Rebased. Created 5 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 6aa21a8adb71cf0d13822212cd78f55b3fb7542b..76417c8123f2fe3da628bafb71986c2650bb5f54 100644
--- a/components/user_manager/user_info_impl.cc
+++ b/components/user_manager/user_info_impl.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
+#include "components/signin/core/account_id/account_id.h"
namespace user_manager {
@@ -27,8 +28,8 @@ std::string UserInfoImpl::GetEmail() const {
return "stub-user@domain.com";
}
-std::string UserInfoImpl::GetUserID() const {
- return GetEmail();
+AccountId UserInfoImpl::GetUserID() const {
+ return AccountId::FromUserEmail(GetEmail());
}
const gfx::ImageSkia& UserInfoImpl::GetImage() const {

Powered by Google App Engine
This is Rietveld 408576698