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

Unified Diff: components/mus/ws/window_manager_factory_registry.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/ws/user_id_tracker_observer.h ('k') | components/mus/ws/window_manager_factory_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_manager_factory_registry.h
diff --git a/components/mus/ws/window_manager_factory_registry.h b/components/mus/ws/window_manager_factory_registry.h
index 0bb721b77444ed0412d3af7d78116d520fa5fc72..efd29a42ec6fd12237545b7547e15a8a6598c403 100644
--- a/components/mus/ws/window_manager_factory_registry.h
+++ b/components/mus/ws/window_manager_factory_registry.h
@@ -36,7 +36,7 @@ class WindowManagerFactoryRegistry : public UserIdTrackerObserver {
~WindowManagerFactoryRegistry() override;
void Register(
- UserId user_id,
+ const UserId& user_id,
mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request);
std::vector<WindowManagerFactoryService*> GetServices();
@@ -50,15 +50,15 @@ class WindowManagerFactoryRegistry : public UserIdTrackerObserver {
void AddServiceImpl(scoped_ptr<WindowManagerFactoryService> service);
- bool ContainsServiceForUser(UserId user_id) const;
+ bool ContainsServiceForUser(const UserId& user_id) const;
void OnWindowManagerFactoryConnectionLost(
WindowManagerFactoryService* service);
void OnWindowManagerFactorySet(WindowManagerFactoryService* service);
// 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;
// Set to true the first time a valid factory has been found.
bool got_valid_factory_ = false;
« no previous file with comments | « components/mus/ws/user_id_tracker_observer.h ('k') | components/mus/ws/window_manager_factory_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698