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

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

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.cc
diff --git a/chrome/browser/webdata/autofill_profile_syncable_service.cc b/chrome/browser/webdata/autofill_profile_syncable_service.cc
index cf94ea227db814cb6160ec659fd627c7f015da68..da4e071c1b32fc423e62c86c949bbdc80de729ff 100644
--- a/chrome/browser/webdata/autofill_profile_syncable_service.cc
+++ b/chrome/browser/webdata/autofill_profile_syncable_service.cc
@@ -34,8 +34,6 @@ bool MergeField(FormGroup* form_group,
} // namespace
-namespace browser_sync {
-
const char kAutofillProfileTag[] = "google_chrome_autofill_profiles";
AutofillProfileSyncableService::AutofillProfileSyncableService(
@@ -61,6 +59,7 @@ AutofillProfileSyncableService::AutofillProfileSyncableService()
: web_database_(NULL),
profile_(NULL),
sync_processor_(NULL) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
}
SyncError AutofillProfileSyncableService::MergeDataAndStartSyncing(
@@ -412,5 +411,3 @@ AutofillProfileSyncableService::DataBundle::DataBundle() {}
AutofillProfileSyncableService::DataBundle::~DataBundle() {
}
-
-} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698