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

Unified Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.h

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: chrome/browser/ui/ash/session_state_delegate_chromeos.h
diff --git a/chrome/browser/ui/ash/session_state_delegate_chromeos.h b/chrome/browser/ui/ash/session_state_delegate_chromeos.h
index 2b261483a317579def625b087f75595839e936e6..45f9d776382fddfe6f79f725d90b6bd2564cfb62 100644
--- a/chrome/browser/ui/ash/session_state_delegate_chromeos.h
+++ b/chrome/browser/ui/ash/session_state_delegate_chromeos.h
@@ -49,7 +49,7 @@ class SessionStateDelegateChromeos
const user_manager::UserInfo* GetUserInfo(
content::BrowserContext* context) const override;
bool ShouldShowAvatar(aura::Window* window) const override;
- void SwitchActiveUser(const std::string& user_id) override;
+ void SwitchActiveUser(const user_manager::UserID& user_id) override;
void CycleActiveUser(CycleUser cycle_user) override;
bool IsMultiProfileAllowedByPrimaryUserPolicy() const override;
void AddSessionStateObserver(ash::SessionStateObserver* observer) override;
@@ -77,7 +77,7 @@ class SessionStateDelegateChromeos
// Switches to a new user. This call might show a dialog asking the user if he
// wants to stop desktop casting before switching.
- void TryToSwitchUser(const std::string& user_id);
+ void TryToSwitchUser(const user_manager::UserID& user_id);
// List of observers is only used on Chrome OS for now.
ObserverList<ash::SessionStateObserver> session_state_observer_list_;

Powered by Google App Engine
This is Rietveld 408576698