| Index: services/ui/service.cc
|
| diff --git a/services/ui/service.cc b/services/ui/service.cc
|
| index b7ff96918dc2a27bcbf7f241e2a52e78dbdd7947..e5806dd2b66fa5822ace16b9a9e36da02cc4f7c7 100644
|
| --- a/services/ui/service.cc
|
| +++ b/services/ui/service.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/command_line.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "base/run_loop.h"
|
| #include "base/threading/platform_thread.h"
|
| #include "base/trace_event/trace_event.h"
|
| #include "build/build_config.h"
|
| @@ -251,10 +252,8 @@ void Service::OnFirstDisplayReady() {
|
|
|
| void Service::OnNoMoreDisplays() {
|
| // We may get here from the destructor, in which case there is no messageloop.
|
| - if (base::MessageLoop::current() &&
|
| - base::MessageLoop::current()->is_running()) {
|
| + if (base::RunLoop::IsRunningOnCurrentThread())
|
| base::MessageLoop::current()->QuitWhenIdle();
|
| - }
|
| }
|
|
|
| bool Service::IsTestConfig() const {
|
|
|