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

Unified Diff: components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h

Issue 1460723004: [Sync] Remove the last datatype-specific deps from sync_driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete outdated comment. Created 5 years 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_profile_data_type_controller.h
diff --git a/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h b/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h
index 42e42196844458c9d86a453db917b0dc2010af55..315851170f38c73320ad993905335dfbb6739d63 100644
--- a/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h
+++ b/components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h
@@ -12,6 +12,7 @@
#include "components/sync_driver/non_ui_data_type_controller.h"
namespace autofill {
+class AutofillWebDataService;
class PersonalDataManager;
} // namespace autofill
@@ -26,7 +27,8 @@ class AutofillProfileDataTypeController
const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
const base::Closure& error_callback,
- sync_driver::SyncClient* sync_client);
+ sync_driver::SyncClient* sync_client,
+ const scoped_refptr<autofill::AutofillWebDataService>& web_data_service);
// NonUIDataTypeController:
syncer::ModelType type() const override;
@@ -54,8 +56,13 @@ class AutofillProfileDataTypeController
// A reference to the DB thread's task runner.
const scoped_refptr<base::SingleThreadTaskRunner> db_thread_;
+ // A pointer to the sync client.
sync_driver::SyncClient* const sync_client_;
- autofill::PersonalDataManager* personal_data_;
+
+ // A reference to the AutofillWebDataService for this controller.
+ scoped_refptr<autofill::AutofillWebDataService> web_data_service_;
+
+ // Whether the database loaded callback has been registered.
bool callback_registered_;
DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController);

Powered by Google App Engine
This is Rietveld 408576698