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

Unified Diff: components/password_manager/core/browser/password_syncable_service.h

Issue 183223003: Add StartSyncFlare to PasswordSyncableService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk Created 6 years, 9 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/password_manager/core/browser/password_syncable_service.h
diff --git a/components/password_manager/core/browser/password_syncable_service.h b/components/password_manager/core/browser/password_syncable_service.h
index e9879852aeeeeb5b933e6bda98ca87b86f1ba04c..c99ce92b3b42f78e907c49a091ee88cf4a757fbd 100644
--- a/components/password_manager/core/browser/password_syncable_service.h
+++ b/components/password_manager/core/browser/password_syncable_service.h
@@ -55,6 +55,11 @@ class PasswordSyncableService : public syncer::SyncableService,
// Notifies sync of changes to the password database.
void ActOnPasswordStoreChanges(const PasswordStoreChangeList& changes);
+ // Provides a StartSyncFlare to the SyncableService. See
+ // sync_start_util for more.
+ void InjectStartSyncFlare(
+ const syncer::SyncableService::StartSyncFlare& flare);
+
private:
typedef std::vector<autofill::PasswordForm*> PasswordForms;
// Map from password sync tag to password form.
@@ -102,7 +107,13 @@ class PasswordSyncableService : public syncer::SyncableService,
// The password store that adds/updates/deletes password entries.
PasswordStore* const password_store_;
+ // A signal to start sync as soon as possible.
+ syncer::SyncableService::StartSyncFlare flare_;
+
+ // True if processing sync changes is in progress.
bool is_processing_sync_changes_;
+
+ DISALLOW_COPY_AND_ASSIGN(PasswordSyncableService);
};
// Converts the |password| into a SyncData object.

Powered by Google App Engine
This is Rietveld 408576698