Index: content/browser/background_sync/background_sync_manager_unittest.cc |
diff --git a/content/browser/background_sync/background_sync_manager_unittest.cc b/content/browser/background_sync/background_sync_manager_unittest.cc |
index f49db2d14b65efb748a7d397fedded434856984d..cb60eeeba21a42c99003afab3f22c7de31ec942e 100644 |
--- a/content/browser/background_sync/background_sync_manager_unittest.cc |
+++ b/content/browser/background_sync/background_sync_manager_unittest.cc |
@@ -5,12 +5,10 @@ |
#include "content/browser/background_sync/background_sync_manager.h" |
#include "base/files/scoped_temp_dir.h" |
-#include "base/location.h" |
#include "base/logging.h" |
#include "base/power_monitor/power_monitor.h" |
#include "base/power_monitor/power_monitor_source.h" |
#include "base/run_loop.h" |
-#include "base/single_thread_task_runner.h" |
#include "base/thread_task_runner_handle.h" |
#include "content/browser/browser_thread_impl.h" |
#include "content/browser/service_worker/embedded_worker_test_helper.h" |
@@ -147,7 +145,7 @@ class TestBackgroundSyncManager : public BackgroundSyncManager { |
const ServiceWorkerStorage::StatusCallback& callback) override { |
EXPECT_TRUE(continuation_.is_null()); |
if (corrupt_backend_) { |
- base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ base::MessageLoop::current()->PostTask( |
FROM_HERE, base::Bind(callback, SERVICE_WORKER_ERROR_FAILED)); |
return; |
} |
@@ -167,7 +165,7 @@ class TestBackgroundSyncManager : public BackgroundSyncManager { |
callback) override { |
EXPECT_TRUE(continuation_.is_null()); |
if (corrupt_backend_) { |
- base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ base::MessageLoop::current()->PostTask( |
FROM_HERE, |
base::Bind(callback, std::vector<std::pair<int64, std::string>>(), |
SERVICE_WORKER_ERROR_FAILED)); |