| Index: ui/ozone/platform/wayland/wayland_connection.cc
|
| diff --git a/ui/ozone/platform/wayland/wayland_connection.cc b/ui/ozone/platform/wayland/wayland_connection.cc
|
| index b2fb1084f94ac6a7e27b5d4275e834108323d563..520b21f9f08a62f6b17332484c7e0d6a58a115db 100644
|
| --- a/ui/ozone/platform/wayland/wayland_connection.cc
|
| +++ b/ui/ozone/platform/wayland/wayland_connection.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/ptr_util.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/strings/string_util.h"
|
| +#include "base/threading/thread_task_runner_handle.h"
|
| #include "ui/ozone/platform/wayland/wayland_object.h"
|
| #include "ui/ozone/platform/wayland/wayland_window.h"
|
|
|
| @@ -88,7 +89,8 @@ bool WaylandConnection::StartProcessingEvents() {
|
| void WaylandConnection::ScheduleFlush() {
|
| if (scheduled_flush_ || !watching_)
|
| return;
|
| - base::MessageLoopForUI::current()->task_runner()->PostTask(
|
| + DCHECK(base::MessageLoopForUI::IsCurrent());
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| FROM_HERE, base::Bind(&WaylandConnection::Flush, base::Unretained(this)));
|
| scheduled_flush_ = true;
|
| }
|
|
|