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

Side by Side Diff: services/ui/ws/user_id_tracker.cc

Issue 2505133003: Mojo C++ bindings: switch part of the services/ui/public/interfaces mojom target to use STL types. (Closed)
Patch Set: Merge branch 'master' into c139_wrappers_ui Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « services/ui/ws/user_id_tracker.h ('k') | services/ui/ws/window_server_test_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/ui/ws/user_id_tracker.h" 5 #include "services/ui/ws/user_id_tracker.h"
6 6
7 #include "services/service_manager/public/interfaces/connector.mojom.h" 7 #include "services/service_manager/public/interfaces/connector.mojom.h"
8 #include "services/ui/ws/user_id_tracker_observer.h" 8 #include "services/ui/ws/user_id_tracker_observer.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 void UserIdTracker::RemoveObserver(UserIdTrackerObserver* observer) { 56 void UserIdTracker::RemoveObserver(UserIdTrackerObserver* observer) {
57 observers_.RemoveObserver(observer); 57 observers_.RemoveObserver(observer);
58 } 58 }
59 59
60 void UserIdTracker::Bind(mojom::UserAccessManagerRequest request) { 60 void UserIdTracker::Bind(mojom::UserAccessManagerRequest request) {
61 bindings_.AddBinding(this, std::move(request)); 61 bindings_.AddBinding(this, std::move(request));
62 } 62 }
63 63
64 void UserIdTracker::SetActiveUser(const mojo::String& user_id) { 64 void UserIdTracker::SetActiveUser(const std::string& user_id) {
65 if (!IsValidUserId(user_id)) 65 if (!IsValidUserId(user_id))
66 AddUserId(user_id); 66 AddUserId(user_id);
67 SetActiveUserId(user_id); 67 SetActiveUserId(user_id);
68 } 68 }
69 69
70 } // namespace ws 70 } // namespace ws
71 } // namespace ui 71 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/user_id_tracker.h ('k') | services/ui/ws/window_server_test_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698