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

Unified Diff: components/mus/ws/display.h

Issue 1770533002: Change userid from a uint32_t to a string guid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@33connector
Patch Set: . Created 4 years, 9 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
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/mus/ws/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/display.h
diff --git a/components/mus/ws/display.h b/components/mus/ws/display.h
index 6fa03ea4b313e95d19a31842a1a22743db79fc00..6cf8975ab3aae35679c3b3e4b5430861492e4e96 100644
--- a/components/mus/ws/display.h
+++ b/components/mus/ws/display.h
@@ -109,7 +109,7 @@ class Display : public PlatformDisplayDelegate,
WindowManagerState* GetWindowManagerStateWithRoot(const ServerWindow* window);
// TODO(sky): this is wrong, plumb through user_id.
WindowManagerState* GetFirstWindowManagerState();
- WindowManagerState* GetWindowManagerStateForUser(UserId user_id);
+ WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id);
size_t num_window_manger_states() const {
return window_manager_state_map_.size();
}
@@ -160,7 +160,7 @@ class Display : public PlatformDisplayDelegate,
friend class test::DisplayTestApi;
using WindowManagerStateMap =
- std::map<uint32_t, scoped_ptr<WindowManagerState>>;
+ std::map<UserId, scoped_ptr<WindowManagerState>>;
// There are two types of events that may be queued, both occur only when
// waiting for an ack from a client.
@@ -242,9 +242,9 @@ class Display : public PlatformDisplayDelegate,
void OnWindowDestroyed(ServerWindow* window) override;
// UserIdTrackerObserver:
- void OnActiveUserIdChanged(UserId id) override;
- void OnUserIdAdded(UserId id) override;
- void OnUserIdRemoved(UserId id) override;
+ void OnActiveUserIdChanged(const UserId& id) override;
+ void OnUserIdAdded(const UserId& id) override;
+ void OnUserIdRemoved(const UserId& id) override;
// WindowManagerFactoryRegistryObserver:
void OnWindowManagerFactorySet(WindowManagerFactoryService* service) override;
« no previous file with comments | « components/mus/mus_app.cc ('k') | components/mus/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698