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

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

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. 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.h
diff --git a/components/sync/driver/non_ui_model_type_controller.h b/components/sync/driver/non_ui_model_type_controller.h
index 8462af2e9497fac108d49bf5d136034cb3d43590..9d5b23dc073492aa1f36a0537fc88981fc3bc8bc 100644
--- a/components/sync/driver/non_ui_model_type_controller.h
+++ b/components/sync/driver/non_ui_model_type_controller.h
@@ -19,16 +19,10 @@ namespace sync_driver_v2 {
// - RunOnModelThread
class NonUIModelTypeController : public NonBlockingDataTypeController {
public:
- NonUIModelTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- const base::Closure& error_callback,
- syncer::ModelType model_type,
- sync_driver::SyncClient* sync_client);
-
- void RunOnUIThread(const tracked_objects::Location& from_here,
- const base::Closure& task) override;
-
- protected:
+ // |dump_stack| is called when an unrecoverable error occurs.
+ NonUIModelTypeController(syncer::ModelType type,
+ const base::Closure& dump_stack,
+ sync_driver::SyncClient* sync_client);
~NonUIModelTypeController() override;
private:
« no previous file with comments | « components/sync/driver/non_ui_data_type_controller_unittest.cc ('k') | components/sync/driver/non_ui_model_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698