| Index: extensions/browser/process_manager.cc
|
| diff --git a/extensions/browser/process_manager.cc b/extensions/browser/process_manager.cc
|
| index 9758fd1645587b5972048cc1a0f3e433b2aef09e..a5fec8a4e1b0a88b8fb8439698de796a34b2a2de 100644
|
| --- a/extensions/browser/process_manager.cc
|
| +++ b/extensions/browser/process_manager.cc
|
| @@ -10,7 +10,6 @@
|
| #include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| -#include "base/message_loop/message_loop.h"
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/stl_util.h"
|
| @@ -821,8 +820,9 @@ void ProcessManager::OnKeepaliveImpulseCheck() {
|
| }
|
|
|
| // OnKeepaliveImpulseCheck() is always called in constructor, but in unit
|
| - // tests there will be no message loop. In that event don't schedule tasks.
|
| - if (base::MessageLoop::current()) {
|
| + // tests there will be no thread task runner handle. In that event don't
|
| + // schedule tasks.
|
| + if (base::ThreadTaskRunnerHandle::IsSet()) {
|
| base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE, base::Bind(&ProcessManager::OnKeepaliveImpulseCheck,
|
| weak_ptr_factory_.GetWeakPtr()),
|
|
|