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

Unified Diff: chrome/browser/sync/glue/non_frontend_data_type_controller.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/glue/non_frontend_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/non_frontend_data_type_controller.cc b/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
index cab1037aae6559070e1b203747cf6b496703cbfe..7002770b3dc82c14ee7b67ff9a41c3639d5715e9 100644
--- a/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
+++ b/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/logging.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
#include "chrome/browser/sync/profile_sync_components_factory.h"
@@ -160,7 +161,7 @@ NonFrontendDataTypeController::AssociationResult::~AssociationResult() {}
// effort for now, hence still having a dependency on ProfileSyncService.
// That dep can probably be removed without too much work.
NonFrontendDataTypeController::NonFrontendDataTypeController(
- scoped_refptr<base::MessageLoopProxy> ui_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
const base::Closure& error_callback,
ProfileSyncComponentsFactory* profile_sync_factory,
Profile* profile,
@@ -302,7 +303,7 @@ void NonFrontendDataTypeController::OnSingleDataTypeUnrecoverableError(
}
NonFrontendDataTypeController::NonFrontendDataTypeController()
- : DataTypeController(base::MessageLoopProxy::current(), base::Closure()),
+ : DataTypeController(base::ThreadTaskRunnerHandle::Get(), base::Closure()),
state_(NOT_RUNNING),
profile_sync_factory_(NULL),
profile_(NULL),

Powered by Google App Engine
This is Rietveld 408576698