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: components/sync_driver/non_ui_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: components/sync_driver/non_ui_data_type_controller.cc
diff --git a/components/sync_driver/non_ui_data_type_controller.cc b/components/sync_driver/non_ui_data_type_controller.cc
index eb86a9ab863c635af3580d46ad2b70f365cafe4f..71285ca17b92b12e1fc3703cfbedc9c78b3d1aac 100644
--- a/components/sync_driver/non_ui_data_type_controller.cc
+++ b/components/sync_driver/non_ui_data_type_controller.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
+#include "base/thread_task_runner_handle.h"
#include "components/sync_driver/generic_change_processor_factory.h"
#include "components/sync_driver/shared_change_processor_ref.h"
#include "components/sync_driver/sync_api_component_factory.h"
@@ -22,7 +23,7 @@ NonUIDataTypeController::CreateSharedChangeProcessor() {
}
NonUIDataTypeController::NonUIDataTypeController(
- scoped_refptr<base::MessageLoopProxy> ui_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
const base::Closure& error_callback,
SyncApiComponentFactory* sync_factory)
: DataTypeController(ui_thread, error_callback),
@@ -171,7 +172,7 @@ void NonUIDataTypeController::OnSingleDataTypeUnrecoverableError(
}
NonUIDataTypeController::NonUIDataTypeController()
- : DataTypeController(base::MessageLoopProxy::current(), base::Closure()),
+ : DataTypeController(base::ThreadTaskRunnerHandle::Get(), base::Closure()),
sync_factory_(NULL) {}
NonUIDataTypeController::~NonUIDataTypeController() {}
« no previous file with comments | « components/sync_driver/non_ui_data_type_controller.h ('k') | components/sync_driver/ui_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698