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

Unified Diff: ash/system/user/tray_user.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: ash/system/user/tray_user.cc
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc
index 83ab7e7514490380e3a2488adf1b30495b5df968..3a2d6e4a4d4764fd8fe73b602c46fc6d85ed730e 100644
--- a/ash/system/user/tray_user.cc
+++ b/ash/system/user/tray_user.cc
@@ -20,6 +20,7 @@
#include "ash/system/user/user_view.h"
#include "base/logging.h"
#include "base/strings/string16.h"
+#include "components/user_manager/user_id.h"
#include "components/user_manager/user_info.h"
#include "grit/ash_strings.h"
#include "ui/aura/window.h"
@@ -113,7 +114,7 @@ views::View* TrayUser::CreateDefaultView(user::LoginStatus status) {
}
views::View* TrayUser::CreateDetailedView(user::LoginStatus status) {
- std::string user_id = Shell::GetInstance()
+ const user_manager::UserID user_id = Shell::GetInstance()
->session_state_delegate()
->GetUserInfo(0)
->GetUserID();

Powered by Google App Engine
This is Rietveld 408576698