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

Unified Diff: chrome/browser/sync/profile_sync_service.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
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index e8df3e0141ef6038007d3486a70f9d2d8ba2708c..2ac3deed199641b1b73d1e363b6f6284ebfac33c 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -22,6 +22,7 @@
#include "base/profiler/scoped_tracker.h"
#include "base/strings/string16.h"
#include "base/strings/stringprintf.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
@@ -2640,7 +2641,7 @@ void ProfileSyncService::CheckSyncBackupIfNeeded() {
FROM_HERE,
base::Bind(syncer::CheckSyncDbLastModifiedTime,
profile_->GetPath().Append(kSyncBackupDataFolderName),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
base::Bind(&ProfileSyncService::CheckSyncBackupCallback,
weak_factory_.GetWeakPtr())));
} else {
@@ -2648,7 +2649,7 @@ void ProfileSyncService::CheckSyncBackupIfNeeded() {
content::BrowserThread::FILE, FROM_HERE,
base::Bind(syncer::CheckSyncDbLastModifiedTime,
profile_->GetPath().Append(kSyncBackupDataFolderName),
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
base::Bind(&ProfileSyncService::CheckSyncBackupCallback,
weak_factory_.GetWeakPtr())));
}

Powered by Google App Engine
This is Rietveld 408576698