| Index: ui/aura/mus/window_tree_client.cc
|
| diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
|
| index 7618729447bb5cadd74713ff2a7fb7b3017cec51..581cac319aa462ca673fcf0ce616de3c042da085 100644
|
| --- a/ui/aura/mus/window_tree_client.cc
|
| +++ b/ui/aura/mus/window_tree_client.cc
|
| @@ -14,6 +14,8 @@
|
| #include "base/bind.h"
|
| #include "base/command_line.h"
|
| #include "base/memory/ptr_util.h"
|
| +#include "base/message_loop/message_loop.h"
|
| +#include "base/run_loop.h"
|
| #include "base/threading/thread.h"
|
| #include "cc/base/switches.h"
|
| #include "components/discardable_memory/client/client_discardable_shared_memory_manager.h"
|
| @@ -80,16 +82,16 @@ struct WindowPortPropertyDataMus : public ui::PropertyData {
|
|
|
| // Handles acknowledgment of an input event, either immediately when a nested
|
| // message loop starts, or upon destruction.
|
| -class EventAckHandler : public base::MessageLoop::NestingObserver {
|
| +class EventAckHandler : public base::RunLoop::NestingObserver {
|
| public:
|
| explicit EventAckHandler(std::unique_ptr<EventResultCallback> ack_callback)
|
| : ack_callback_(std::move(ack_callback)) {
|
| DCHECK(ack_callback_);
|
| - base::MessageLoop::current()->AddNestingObserver(this);
|
| + base::RunLoop::AddNestingObserverOnCurrentThread(this);
|
| }
|
|
|
| ~EventAckHandler() override {
|
| - base::MessageLoop::current()->RemoveNestingObserver(this);
|
| + base::RunLoop::RemoveNestingObserverOnCurrentThread(this);
|
| if (ack_callback_) {
|
| ack_callback_->Run(handled_ ? ui::mojom::EventResult::HANDLED
|
| : ui::mojom::EventResult::UNHANDLED);
|
| @@ -98,7 +100,7 @@ class EventAckHandler : public base::MessageLoop::NestingObserver {
|
|
|
| void set_handled(bool handled) { handled_ = handled; }
|
|
|
| - // base::MessageLoop::NestingObserver:
|
| + // base::RunLoop::NestingObserver:
|
| void OnBeginNestedMessageLoop() override {
|
| // Acknowledge the event immediately if a nested message loop starts.
|
| // Otherwise we appear unresponsive for the life of the nested message loop.
|
|
|