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

Unified Diff: chrome/browser/sync/backup_rollback_controller.cc

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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/backend_migrator.cc ('k') | chrome/browser/sync/backup_rollback_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/backup_rollback_controller.cc
diff --git a/chrome/browser/sync/backup_rollback_controller.cc b/chrome/browser/sync/backup_rollback_controller.cc
index fdef5cb566ba16e336d281ccbea6bd3ba3a9309d..1c8dae7025a39943a02f325ebb6e8ce03d0304c3 100644
--- a/chrome/browser/sync/backup_rollback_controller.cc
+++ b/chrome/browser/sync/backup_rollback_controller.cc
@@ -5,8 +5,10 @@
#include "chrome/browser/sync/backup_rollback_controller.h"
#include "base/command_line.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
#include "base/metrics/field_trial.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
#include "chrome/common/chrome_switches.h"
#include "components/sync_driver/sync_prefs.h"
@@ -43,7 +45,7 @@ bool BackupRollbackController::StartBackup() {
// Disable rollback to previous backup DB because it will be overwritten by
// new backup.
sync_prefs_->SetRemainingRollbackTries(0);
- base::MessageLoop::current()->PostTask(FROM_HERE, start_backup_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, start_backup_);
return true;
}
@@ -64,7 +66,7 @@ bool BackupRollbackController::StartRollback() {
return false; // No pending rollback.
sync_prefs_->SetRemainingRollbackTries(rollback_tries - 1);
- base::MessageLoop::current()->PostTask(FROM_HERE, start_rollback_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, start_rollback_);
return true;
}
« no previous file with comments | « chrome/browser/sync/backend_migrator.cc ('k') | chrome/browser/sync/backup_rollback_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698