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

Unified Diff: components/autofill/core/browser/webdata/autofill_data_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/autofill/core/browser/webdata/autofill_data_type_controller.h
diff --git a/components/autofill/core/browser/webdata/autofill_data_type_controller.h b/components/autofill/core/browser/webdata/autofill_data_type_controller.h
index 6bcf0ee21f11239fe48508c9902c495437e6d972..57e2fe145e07a5d169359932bc1af3045ea367b7 100644
--- a/components/autofill/core/browser/webdata/autofill_data_type_controller.h
+++ b/components/autofill/core/browser/webdata/autofill_data_type_controller.h
@@ -22,20 +22,18 @@ namespace browser_sync {
// A class that manages the startup and shutdown of autofill sync.
class AutofillDataTypeController : public sync_driver::NonUIDataTypeController {
public:
+ // |dump_stack| is called when an unrecoverable error occurs.
AutofillDataTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
- const base::Closure& error_callback,
+ const base::Closure& dump_stack,
sync_driver::SyncClient* sync_client,
const scoped_refptr<autofill::AutofillWebDataService>& web_data_service);
+ ~AutofillDataTypeController() override;
// NonUIDataTypeController implementation.
- syncer::ModelType type() const override;
syncer::ModelSafeGroup model_safe_group() const override;
protected:
- ~AutofillDataTypeController() override;
-
// NonUIDataTypeController implementation.
bool PostTaskOnBackendThread(const tracked_objects::Location& from_here,
const base::Closure& task) override;

Powered by Google App Engine
This is Rietveld 408576698