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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.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: Perform at most a single merge for new incoming sync data 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/webdata/autofill_webdata_backend_impl.h
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
index 0d87cd068fbb5326471daea70bf4a1572ac10e32..ae88ae19292da45a8b58825e96a42391966566fd 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
+++ b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
@@ -52,7 +52,8 @@ class AutofillWebDataBackendImpl
scoped_refptr<WebDatabaseBackend> web_database_backend,
scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
scoped_refptr<base::SingleThreadTaskRunner> db_thread,
- const base::Closure& on_changed_callback);
+ const base::Closure& on_changed_callback,
+ const base::Callback<void(syncer::ModelType)>& on_sync_started_callback);
// AutofillWebDataBackend implementation.
void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer) override;
@@ -61,6 +62,7 @@ class AutofillWebDataBackendImpl
WebDatabase* GetDatabase() override;
void RemoveExpiredFormElements() override;
void NotifyOfMultipleAutofillChanges() override;
+ void NotifyThatSyncHasStarted(syncer::ModelType model_type) override;
// Returns a SupportsUserData objects that may be used to store data
// owned by the DB thread on this object. Should be called only from
@@ -224,6 +226,7 @@ class AutofillWebDataBackendImpl
scoped_refptr<WebDatabaseBackend> web_database_backend_;
base::Closure on_changed_callback_;
+ base::Callback<void(syncer::ModelType)> on_sync_started_callback_;
DISALLOW_COPY_AND_ASSIGN(AutofillWebDataBackendImpl);
};

Powered by Google App Engine
This is Rietveld 408576698