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

Unified Diff: chrome/browser/webdata/autocomplete_syncable_service.h

Issue 14081043: Hook up Autofill Backend interface to SyncableServices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge Created 7 years, 7 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: chrome/browser/webdata/autocomplete_syncable_service.h
diff --git a/chrome/browser/webdata/autocomplete_syncable_service.h b/chrome/browser/webdata/autocomplete_syncable_service.h
index a5bfb5d82eb4d7b9a601b632b20b258ece2289f9..3deb86b234780a239ed95066f5a78ecb33be6d85 100644
--- a/chrome/browser/webdata/autocomplete_syncable_service.h
+++ b/chrome/browser/webdata/autocomplete_syncable_service.h
@@ -17,6 +17,7 @@
#include "base/threading/non_thread_safe.h"
#include "components/autofill/browser/webdata/autofill_change.h"
#include "components/autofill/browser/webdata/autofill_entry.h"
+#include "components/autofill/browser/webdata/autofill_webdata_backend.h"
#include "components/autofill/browser/webdata/autofill_webdata_service.h"
#include "components/autofill/browser/webdata/autofill_webdata_service_observer.h"
#include "sync/api/sync_change.h"
@@ -48,8 +49,9 @@ class AutocompleteSyncableService
// Creates a new AutocompleteSyncableService and hangs it off of
// |web_data_service|, which takes ownership.
- static void CreateForWebDataService(
- autofill::AutofillWebDataService* web_data_service);
+ static void CreateForWebDataServiceAndBackend(
+ autofill::AutofillWebDataService* web_data_service,
+ autofill::AutofillWebDataBackend* webdata_backend);
// Retrieves the AutocompleteSyncableService stored on |web_data|.
static AutocompleteSyncableService* FromWebDataService(
@@ -86,7 +88,7 @@ class AutocompleteSyncableService
protected:
explicit AutocompleteSyncableService(
- autofill::AutofillWebDataService* web_data_service);
+ autofill::AutofillWebDataBackend* webdata_backend);
// Helper to query WebDatabase for the current autocomplete state.
// Made virtual for ease of mocking in the unit-test.
@@ -152,10 +154,10 @@ class AutocompleteSyncableService
}
// Lifetime of AutocompleteSyncableService object is shorter than
- // |web_data_service_| passed to it.
- autofill::AutofillWebDataService* web_data_service_;
+ // |autofill_webdata_backend_| passed to it.
+ autofill::AutofillWebDataBackend* webdata_backend_;
- ScopedObserver<autofill::AutofillWebDataService, AutocompleteSyncableService>
+ ScopedObserver<autofill::AutofillWebDataBackend, AutocompleteSyncableService>
scoped_observer_;
// We receive ownership of |sync_processor_| in MergeDataAndStartSyncing() and
« no previous file with comments | « chrome/browser/sync/profile_sync_service_autofill_unittest.cc ('k') | chrome/browser/webdata/autocomplete_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698