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

Unified Diff: components/sync_driver/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
« no previous file with comments | « components/sync_driver/ui_data_type_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/ui_data_type_controller.cc
diff --git a/components/sync_driver/ui_data_type_controller.cc b/components/sync_driver/ui_data_type_controller.cc
index 16d855c50dc8aa5581481a719f38a083c2e702e7..0f5093fa00072eb900d648e47d4fe424ae27af52 100644
--- a/components/sync_driver/ui_data_type_controller.cc
+++ b/components/sync_driver/ui_data_type_controller.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/profiler/scoped_tracker.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 "sync/api/sync_error.h"
@@ -17,7 +18,7 @@
namespace sync_driver {
UIDataTypeController::UIDataTypeController()
- : DataTypeController(base::MessageLoopProxy::current(),
+ : DataTypeController(base::ThreadTaskRunnerHandle::Get(),
base::Closure()),
sync_factory_(NULL),
state_(NOT_RUNNING),
@@ -25,7 +26,7 @@ UIDataTypeController::UIDataTypeController()
}
UIDataTypeController::UIDataTypeController(
- scoped_refptr<base::MessageLoopProxy> ui_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
const base::Closure& error_callback,
syncer::ModelType type,
SyncApiComponentFactory* sync_factory)
« no previous file with comments | « components/sync_driver/ui_data_type_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698