Index: services/shell/background/background_shell.cc |
diff --git a/services/shell/background/background_shell.cc b/services/shell/background/background_shell.cc |
index 6f743c08bae2c47094afaad60424604e8b20c296..bbe6be85ab4f38afcb7cc5e10db4092bdd1bd7ba 100644 |
--- a/services/shell/background/background_shell.cc |
+++ b/services/shell/background/background_shell.cc |
@@ -11,6 +11,7 @@ |
#include "base/memory/ptr_util.h" |
#include "base/message_loop/message_pump_default.h" |
#include "base/path_service.h" |
+#include "base/run_loop.h" |
#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/threading/simple_thread.h" |
@@ -110,7 +111,7 @@ class BackgroundShell::MojoThread : public base::SimpleThread { |
context_ = context.get(); |
context_->Init(std::move(context_init_params)); |
- message_loop_->Run(); |
+ base::RunLoop().Run(); |
// Has to happen after run, but while messageloop still valid. |
context_->Shutdown(); |