Index: ui/gfx/ozone/dri/dri_surface_factory.cc |
diff --git a/ui/gfx/ozone/dri/dri_surface_factory.cc b/ui/gfx/ozone/dri/dri_surface_factory.cc |
index 4db10cf7394489403825c2280d72ece61d56424f..3ce7bf1caceffc87e2dfd1d097ebd315ffaa92a4 100644 |
--- a/ui/gfx/ozone/dri/dri_surface_factory.cc |
+++ b/ui/gfx/ozone/dri/dri_surface_factory.cc |
@@ -203,7 +203,7 @@ bool DriSurfaceFactory::SchedulePageFlip(gfx::AcceleratedWidget w) { |
CHECK(state_ == INITIALIZED); |
// TODO(dnicoara) Change this CHECK once we're running with the threaded |
// compositor. |
- CHECK(base::MessageLoop::current()->type() == base::MessageLoop::TYPE_UI); |
+ CHECK(base::MessageLoopForUI::IsCurrent()); |
// TODO(dnicoara) Once we can handle multiple displays this needs to be |
// changed. |