Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1281)

Unified Diff: chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc

Issue 1128523002: Usage of ThreadTaskRunner in lieu of in [chrome/browser/sync],[components/sync_driver] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | components/sync_driver/data_type_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc
diff --git a/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc b/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc
index 4174f8c805e46adcce408ad5ea309ef923e47094..781ece4deca0078d0ec8eb0c016e9f3cafa9d2d3 100644
--- a/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc
+++ b/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc
@@ -8,6 +8,7 @@
#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "base/test/test_timeouts.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/browsing_data/browsing_data_remover.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service.h"
@@ -57,10 +58,10 @@ class SingleClientBackupRollbackTest : public SyncTest {
base::Time backup_time;
syncer::CheckSyncDbLastModifiedTime(
GetProfile(0)->GetPath().Append(FILE_PATH_LITERAL("Sync Data Backup")),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
base::Bind(&SingleClientBackupRollbackTest::CheckDbCallback,
base::Unretained(this), &backup_time));
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, run_loop.QuitClosure());
run_loop.Run();
return backup_time;
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | components/sync_driver/data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698