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

Unified Diff: components/sync/driver/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/ui_model_type_controller.h
diff --git a/components/sync/driver/ui_model_type_controller.h b/components/sync/driver/ui_model_type_controller.h
index b937841613f912ecc9bed55a73f9769ee6c3be1b..5dae109ef4fb3ee58b1d4f1074f04d890d18e400 100644
--- a/components/sync/driver/ui_model_type_controller.h
+++ b/components/sync/driver/ui_model_type_controller.h
@@ -17,18 +17,12 @@ namespace sync_driver_v2 {
// thread.
class UIModelTypeController : public NonBlockingDataTypeController {
public:
- UIModelTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- const base::Closure& error_callback,
- syncer::ModelType model_type,
- sync_driver::SyncClient* sync_client);
-
- protected:
+ // |dump_stack| is called when an unrecoverable error occurs.
+ UIModelTypeController(syncer::ModelType type,
+ const base::Closure& dump_stack,
+ sync_driver::SyncClient* sync_client);
~UIModelTypeController() override;
- void RunOnUIThread(const tracked_objects::Location& from_here,
- const base::Closure& task) override;
-
private:
// NonBlockingDataTypeController implementations.
// Since this is UI model type controller, we hide this function here.
« no previous file with comments | « components/sync/driver/ui_data_type_controller_unittest.cc ('k') | components/sync/driver/ui_model_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698