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

Unified Diff: components/sync/driver/non_ui_model_type_controller.cc

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase, address comments, remove TestMessageLoop. Created 4 years, 3 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_model_type_controller.cc
diff --git a/components/sync/driver/non_ui_model_type_controller.cc b/components/sync/driver/non_ui_model_type_controller.cc
index 39967bec0b6d3a5c0b36a77838240f3f6c6272cd..330f21931c7f8983baef4c1d03e1bbfa91c23a5e 100644
--- a/components/sync/driver/non_ui_model_type_controller.cc
+++ b/components/sync/driver/non_ui_model_type_controller.cc
@@ -14,22 +14,11 @@ namespace sync_driver_v2 {
using sync_driver::SyncClient;
NonUIModelTypeController::NonUIModelTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- const base::Closure& error_callback,
- syncer::ModelType model_type,
+ syncer::ModelType type,
+ const base::Closure& dump_stack,
SyncClient* sync_client)
- : NonBlockingDataTypeController(ui_thread,
- error_callback,
- model_type,
- sync_client) {}
+ : NonBlockingDataTypeController(type, dump_stack, sync_client) {}
NonUIModelTypeController::~NonUIModelTypeController() {}
-void NonUIModelTypeController::RunOnUIThread(
- const tracked_objects::Location& from_here,
- const base::Closure& task) {
- DCHECK(!BelongsToUIThread());
- ui_thread()->PostTask(from_here, task);
-}
-
} // namespace sync_driver_v2

Powered by Google App Engine
This is Rietveld 408576698