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

Unified Diff: chrome/browser/sync/backend_migrator.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
Index: chrome/browser/sync/backend_migrator.cc
diff --git a/chrome/browser/sync/backend_migrator.cc b/chrome/browser/sync/backend_migrator.cc
index 87ddc5b7226ee3478efc7632619cf864a4c2c439..759c7240db180dd8ad49729b045f0a6912dc9ba4 100644
--- a/chrome/browser/sync/backend_migrator.cc
+++ b/chrome/browser/sync/backend_migrator.cc
@@ -4,8 +4,10 @@
#include "chrome/browser/sync/backend_migrator.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "base/tracked_objects.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/sync/profile_sync_service.h"
@@ -115,10 +117,9 @@ void BackendMigrator::OnConfigureDone(
// |manager_|'s methods aren't re-entrant, and we're notified from
// them, so post a task to avoid problems.
SDVLOG(1) << "Posting OnConfigureDoneImpl";
- base::MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&BackendMigrator::OnConfigureDoneImpl,
- weak_ptr_factory_.GetWeakPtr(), result));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&BackendMigrator::OnConfigureDoneImpl,
+ weak_ptr_factory_.GetWeakPtr(), result));
}
namespace {
« no previous file with comments | « chrome/browser/status_icons/desktop_notification_balloon.cc ('k') | chrome/browser/sync/backup_rollback_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698