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

Unified Diff: components/mus/ws/window_manager_state.cc

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/ws/window_manager_state.h ('k') | components/profile_service/profile_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_manager_state.cc
diff --git a/components/mus/ws/window_manager_state.cc b/components/mus/ws/window_manager_state.cc
index 3f0b6f4884adefd271eb2c20cbeae98ceb931d20..f017dca62f985dccdf42e0fbfc3a3cfe055be22d 100644
--- a/components/mus/ws/window_manager_state.cc
+++ b/components/mus/ws/window_manager_state.cc
@@ -6,21 +6,22 @@
#include "components/mus/ws/connection_manager.h"
#include "components/mus/ws/server_window.h"
+#include "mojo/shell/public/interfaces/connector.mojom.h"
namespace mus {
namespace ws {
WindowManagerState::WindowManagerState(Display* display)
- : WindowManagerState(display, false, 0u) {}
+ : WindowManagerState(display, false, mojo::shell::mojom::kRootUserID) {}
-WindowManagerState::WindowManagerState(Display* display, uint32_t user_id)
+WindowManagerState::WindowManagerState(Display* display, const UserId& user_id)
: WindowManagerState(display, true, user_id) {}
WindowManagerState::~WindowManagerState() {}
WindowManagerState::WindowManagerState(Display* display,
bool is_user_id_valid,
- uint32_t user_id)
+ const UserId& user_id)
: display_(display),
is_user_id_valid_(is_user_id_valid),
user_id_(user_id) {
« no previous file with comments | « components/mus/ws/window_manager_state.h ('k') | components/profile_service/profile_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698