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

Unified Diff: chrome/browser/sync/glue/sync_backend_host_core.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/glue/sync_backend_host_core.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host_core.cc b/chrome/browser/sync/glue/sync_backend_host_core.cc
index 533f26fb850d86cdcbe580e37347bde9e503b9ab..7c077cb3dbf78b0bdafd74aaf958384623745d9a 100644
--- a/chrome/browser/sync/glue/sync_backend_host_core.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_core.cc
@@ -5,7 +5,9 @@
#include "chrome/browser/sync/glue/sync_backend_host_core.h"
#include "base/files/file_util.h"
+#include "base/location.h"
#include "base/metrics/histogram.h"
+#include "base/single_thread_task_runner.h"
#include "chrome/browser/sync/glue/invalidation_adapter.h"
#include "chrome/browser/sync/glue/local_device_info_provider_impl.h"
#include "chrome/browser/sync/glue/sync_backend_registrar.h"
@@ -157,9 +159,9 @@ void SyncBackendHostCore::OnInitializationComplete(
// Sync manager initialization is complete, so we can schedule recurring
// SaveChanges.
- sync_loop_->PostTask(FROM_HERE,
- base::Bind(&SyncBackendHostCore::StartSavingChanges,
- weak_ptr_factory_.GetWeakPtr()));
+ sync_loop_->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&SyncBackendHostCore::StartSavingChanges,
+ weak_ptr_factory_.GetWeakPtr()));
// Hang on to these for a while longer. We're not ready to hand them back to
// the UI thread yet.
« no previous file with comments | « chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698