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

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

Issue 1775133003: Moves EventDispatcher from Display to WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: todo 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.h ('k') | components/mus/ws/user_id_tracker_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/user_id_tracker.cc
diff --git a/components/mus/ws/user_id_tracker.cc b/components/mus/ws/user_id_tracker.cc
index 453fde6d5a1581d03a27a355b19df738112a18a8..3a54f64e8cd6507f652b0e0e0d1608b10a0920c7 100644
--- a/components/mus/ws/user_id_tracker.cc
+++ b/components/mus/ws/user_id_tracker.cc
@@ -24,9 +24,10 @@ void UserIdTracker::SetActiveUserId(const UserId& id) {
if (id == active_id_)
return;
+ const UserId previously_active_id = active_id_;
active_id_ = id;
FOR_EACH_OBSERVER(UserIdTrackerObserver, observers_,
- OnActiveUserIdChanged(id));
+ OnActiveUserIdChanged(previously_active_id, id));
}
void UserIdTracker::AddUserId(const UserId& id) {
« no previous file with comments | « components/mus/ws/user_id_tracker.h ('k') | components/mus/ws/user_id_tracker_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698