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

Unified Diff: components/user_manager/empty_user_info.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: components/user_manager/empty_user_info.cc
diff --git a/components/user_manager/empty_user_info.cc b/components/user_manager/empty_user_info.cc
index ab886f179015a84314061afea70a2e6debf7ef6f..2ecb3434b20da4769c69b3bb1fb82ce9c0846875 100644
--- a/components/user_manager/empty_user_info.cc
+++ b/components/user_manager/empty_user_info.cc
@@ -9,7 +9,7 @@
namespace user_manager {
-EmptyUserInfo::EmptyUserInfo() {
+EmptyUserInfo::EmptyUserInfo() : user_id_(std::string() /* gaia_id */, std::string() /* email */ ) {
}
EmptyUserInfo::~EmptyUserInfo() {
@@ -30,9 +30,9 @@ std::string EmptyUserInfo::GetEmail() const {
return std::string();
}
-std::string EmptyUserInfo::GetUserID() const {
+const UserID& EmptyUserInfo::GetUserID() const {
NOTIMPLEMENTED();
- return std::string();
+ return user_id_;
}
const gfx::ImageSkia& EmptyUserInfo::GetImage() const {

Powered by Google App Engine
This is Rietveld 408576698