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

Unified Diff: ash/session/session_state_observer.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: ash/session/session_state_observer.h
diff --git a/ash/session/session_state_observer.h b/ash/session/session_state_observer.h
index 36fad837d611f8b2040a40d13fa76caa886524c0..34613c6a1c1153f1f02a1746c53a92d42fdf1830 100644
--- a/ash/session/session_state_observer.h
+++ b/ash/session/session_state_observer.h
@@ -11,15 +11,19 @@
#include "ash/session/session_state_delegate.h"
#include "base/basictypes.h"
+namespace user_manager {
+class UserID;
+}
+
namespace ash {
class ASH_EXPORT SessionStateObserver {
public:
// Called when active user has changed.
- virtual void ActiveUserChanged(const std::string& user_id) {}
+ virtual void ActiveUserChanged(const user_manager::UserID& user_id) {}
// Called when another user gets added to the existing session.
- virtual void UserAddedToSession(const std::string& user_id) {}
+ virtual void UserAddedToSession(const user_manager::UserID& user_id) {}
// Called when session state is changed.
virtual void SessionStateChanged(SessionStateDelegate::SessionState state) {}

Powered by Google App Engine
This is Rietveld 408576698