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

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

Issue 12494020: Remove knowledge of Chrome-specific SyncableService classes from WebDataService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: chrome/browser/webdata/autofill_profile_syncable_service.h
diff --git a/chrome/browser/webdata/autofill_profile_syncable_service.h b/chrome/browser/webdata/autofill_profile_syncable_service.h
index c55cec53b6d8dd359f379f131e7416af33c5ef74..714fbad810d9fd40bc6c78aa7f4ac95c4bc6f422 100644
--- a/chrome/browser/webdata/autofill_profile_syncable_service.h
+++ b/chrome/browser/webdata/autofill_profile_syncable_service.h
@@ -29,6 +29,7 @@ class AutofillTable;
class FormGroup;
class ProfileSyncServiceAutofillTest;
class WebDataService;
+class WebDataServiceBase;
extern const char kAutofillProfileTag[];
@@ -44,6 +45,15 @@ class AutofillProfileSyncableService
explicit AutofillProfileSyncableService(WebDataService* web_data_service);
virtual ~AutofillProfileSyncableService();
+ // Retrieves the AutofillProfileSyncableService stored on |web_data|.
+ static AutofillProfileSyncableService* FromWebData(
+ WebDataServiceBase* web_data);
+
+ // Attaches |service| to |web_data|, transferring ownership to |web_data|.
+ static void AttachToWebData(
+ scoped_ptr<AutofillProfileSyncableService> service,
+ WebDataServiceBase* web_data);
+
static syncer::ModelType model_type() { return syncer::AUTOFILL_PROFILE; }
// syncer::SyncableService implementation.

Powered by Google App Engine
This is Rietveld 408576698