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

Unified Diff: components/autofill/core/browser/personal_data_manager.h

Issue 2142123002: [Autofill] Run autofill-profile de-dupe after sync starts if sync is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/personal_data_manager.h
diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
index c913506b341c460db6f7e48b3af5be01a53fb67c..894110185b42690ed5c8bbe27f1467e6ebab108d 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -36,6 +36,10 @@ class SigninManagerBase;
class PersonalDataManagerFactory;
#endif
+namespace sync_driver {
+class SyncService;
+}
+
namespace autofill {
class AutofillInteractiveTest;
class AutofillTest;
@@ -75,6 +79,10 @@ class PersonalDataManager : public KeyedService,
SigninManagerBase* signin_manager,
bool is_off_the_record);
+ // Called once the sync service is known to be instantiated and configured.
+ // Note that it may not be started, but it's preferences can be queried.
+ void OnSyncServiceConfigured(sync_driver::SyncService* sync_service);
+
// WebDataServiceConsumer:
void OnWebDataServiceRequestDone(WebDataServiceBase::Handle h,
const WDTypedResult* result) override;
@@ -484,6 +492,10 @@ class PersonalDataManager : public KeyedService,
// An observer to listen for changes to prefs::kAutofillWalletImportEnabled.
std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_;
+ // Set to true if autofill profile deduplication is enabled and needs to be
+ // performed on the next data refresh.
+ bool is_autofill_profile_dedupe_pending_ = false;
+
DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
};

Powered by Google App Engine
This is Rietveld 408576698