| Index: chrome/browser/background/background_mode_manager.cc
|
| diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
|
| index db6b3c1bc567fefe938764c333112934d89789bf..9e3427d63d82004ca46e4f3a6ce99e1a22396ee8 100644
|
| --- a/chrome/browser/background/background_mode_manager.cc
|
| +++ b/chrome/browser/background/background_mode_manager.cc
|
| @@ -11,11 +11,14 @@
|
| #include "base/base_paths.h"
|
| #include "base/bind.h"
|
| #include "base/command_line.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/metrics/histogram.h"
|
| #include "base/prefs/pref_registry_simple.h"
|
| #include "base/prefs/pref_service.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "chrome/app/chrome_command_ids.h"
|
| #include "chrome/browser/background/background_application_list_model.h"
|
| #include "chrome/browser/browser_process.h"
|
| @@ -623,7 +626,7 @@ void BackgroundModeManager::DecrementKeepAliveCountForStartup() {
|
| // We call this via the message queue to make sure we don't try to end
|
| // keep-alive (which can shutdown Chrome) before the message loop has
|
| // started.
|
| - base::MessageLoop::current()->PostTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| FROM_HERE, base::Bind(&chrome::DecrementKeepAliveCount));
|
| }
|
| }
|
|
|