| Index: chrome/browser/sync/sync_stopped_reporter.cc
|
| diff --git a/chrome/browser/sync/sync_stopped_reporter.cc b/chrome/browser/sync/sync_stopped_reporter.cc
|
| index ad7b9f42e973284fa771c68d5c562bb71405dee3..b0926f141f4b09ab1c0bcce77a02ad3292730585 100644
|
| --- a/chrome/browser/sync/sync_stopped_reporter.cc
|
| +++ b/chrome/browser/sync/sync_stopped_reporter.cc
|
| @@ -4,8 +4,11 @@
|
|
|
| #include "chrome/browser/sync/sync_stopped_reporter.h"
|
|
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "base/timer/timer.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "net/base/load_flags.h"
|
| @@ -75,16 +78,16 @@ void SyncStoppedReporter::OnURLFetchComplete(const net::URLFetcher* source) {
|
| fetcher_.reset();
|
| timer_.Stop();
|
| if (!callback_.is_null()) {
|
| - base::MessageLoop::current()->PostTask(FROM_HERE,
|
| - base::Bind(callback_, result));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(callback_, result));
|
| }
|
| }
|
|
|
| void SyncStoppedReporter::OnTimeout() {
|
| fetcher_.reset();
|
| if (!callback_.is_null()) {
|
| - base::MessageLoop::current()->PostTask(FROM_HERE,
|
| - base::Bind(callback_, RESULT_TIMEOUT));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(callback_, RESULT_TIMEOUT));
|
| }
|
| }
|
|
|
|
|