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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_backend.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: Better logging and fix mathp's comments 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.h
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_backend.h b/components/autofill/core/browser/webdata/autofill_webdata_backend.h
index 8b06ffb926f53b07cac0ccb8307c976abdd9494f..5b913054bfdf6cbd416df70785b5d65964b64ff8 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_backend.h
+++ b/components/autofill/core/browser/webdata/autofill_webdata_backend.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_
+#include "sync/internal_api/public/base/model_type.h"
+
class WebDatabase;
namespace autofill {
@@ -36,6 +38,11 @@ class AutofillWebDataBackend {
// NOTE: This method is intended to be called from the DB thread. The UI
// thread notifications are asynchronous.
virtual void NotifyOfMultipleAutofillChanges() = 0;
+
+ // Notifies listeners on the UI thread that sync has started for |model_type|.
+ // NOTE: This method is intended to be called from the DB thread. The UI
+ // thread notifications are asynchronous.
+ virtual void NotifyThatSyncHasStarted(syncer::ModelType model_type) = 0;
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698