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

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

Issue 8184001: The AutofillProfileSyncableService's lifetime should be managed by the WebDataService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ensure that destruction occurs on the DB thread Created 9 years, 2 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 74397b98cffb1316f0e8e4d87cce109aac01faf9..765ab89aaefefd8f0ae9390060c21895a433aef3 100644
--- a/chrome/browser/webdata/autofill_profile_syncable_service.h
+++ b/chrome/browser/webdata/autofill_profile_syncable_service.h
@@ -27,15 +27,14 @@
class AutofillProfile;
class Profile;
class ProfileSyncServiceAutofillTest;
-
class WebDatabase;
namespace browser_sync {
+class UnrecoverableErrorHandler;
+}
extern const char kAutofillProfileTag[];
-class UnrecoverableErrorHandler;
-
// The sync implementation for AutofillProfiles.
// MergeDataAndStartSyncing() called first, it does cloud->local and
// local->cloud syncs. Then for each cloud change we receive
@@ -66,6 +65,9 @@ class AutofillProfileSyncableService
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
+ const WebDatabase* web_database() { return web_database_; }
akalin 2011/10/10 21:58:57 where are these used?
Ilya Sherman 2011/10/10 22:33:13 I added them for the sake of the DCHECK's in the a
+ const Profile* profile() { return profile_; }
+
protected:
// A convenience wrapper of a bunch of state we pass around while
// associating models, and send to the WebDatabase for persistence.
@@ -84,7 +86,7 @@ class AutofillProfileSyncableService
virtual bool SaveChangesToWebData(const DataBundle& bundle);
private:
- friend class ::ProfileSyncServiceAutofillTest;
+ friend class ProfileSyncServiceAutofillTest;
friend class MockAutofillProfileSyncableService;
FRIEND_TEST_ALL_PREFIXES(AutofillProfileSyncableServiceTest,
MergeDataAndStartSyncing);
@@ -156,6 +158,4 @@ struct AutofillProfileSyncableService::DataBundle {
std::vector<AutofillProfile*> profiles_to_add;
};
-} // namespace browser_sync
-
#endif // CHROME_BROWSER_WEBDATA_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698