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

Unified Diff: components/history/core/browser/history_delete_directives_data_type_controller.h

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Use ThreadChecker instead of NonThreadSafe. 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/history/core/browser/history_delete_directives_data_type_controller.h
diff --git a/components/history/core/browser/history_delete_directives_data_type_controller.h b/components/history/core/browser/history_delete_directives_data_type_controller.h
index e76115e0e07380f24d16b96ddc14cfa753d93dc1..5af4b82a47be272db18712a6057951cb7a869ccd 100644
--- a/components/history/core/browser/history_delete_directives_data_type_controller.h
+++ b/components/history/core/browser/history_delete_directives_data_type_controller.h
@@ -19,9 +19,9 @@ class HistoryDeleteDirectivesDataTypeController
public sync_driver::SyncServiceObserver {
public:
HistoryDeleteDirectivesDataTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- const base::Closure& error_callback,
+ const base::Closure& dump_stack,
sky 2016/09/02 14:06:28 I have to say that it isn't at all clear what dump
maxbogue 2016/09/02 21:15:08 I've added a comment above all the DTC constructor
sync_driver::SyncClient* sync_client);
+ ~HistoryDeleteDirectivesDataTypeController() override;
// UIDataTypeController override.
bool ReadyForStart() const override;
@@ -32,9 +32,6 @@ class HistoryDeleteDirectivesDataTypeController
void OnStateChanged() override;
private:
- // Refcounted.
- ~HistoryDeleteDirectivesDataTypeController() override;
-
// Triggers a SingleDataTypeUnrecoverable error and returns true if the
// type is no longer ready, else does nothing and returns false.
bool DisableTypeIfNecessary();

Powered by Google App Engine
This is Rietveld 408576698