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

Unified Diff: ui/aura/mus/mus_mouse_location_updater.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: fix compile Created 3 years, 8 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
Index: ui/aura/mus/mus_mouse_location_updater.cc
diff --git a/ui/aura/mus/mus_mouse_location_updater.cc b/ui/aura/mus/mus_mouse_location_updater.cc
index cbf89bd620a7980583599cc32916739fda36b711..01952b3768d10a2413da90985623e9e8b85dafa2 100644
--- a/ui/aura/mus/mus_mouse_location_updater.cc
+++ b/ui/aura/mus/mus_mouse_location_updater.cc
@@ -29,11 +29,11 @@ bool IsMouseEventWithLocation(const ui::Event& event) {
} // namespace
MusMouseLocationUpdater::MusMouseLocationUpdater() {
- base::MessageLoop::current()->AddNestingObserver(this);
+ base::RunLoop::AddNestingObserverOnCurrentThread(this);
}
MusMouseLocationUpdater::~MusMouseLocationUpdater() {
- base::MessageLoop::current()->RemoveNestingObserver(this);
+ base::RunLoop::RemoveNestingObserverOnCurrentThread(this);
}
void MusMouseLocationUpdater::OnEventProcessingStarted(const ui::Event& event) {

Powered by Google App Engine
This is Rietveld 408576698