Index: chrome/browser/sync/glue/autofill_profile_data_type_controller.cc |
diff --git a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc |
index f358b762a1b09544ca6afefa3139c6dc8d497dd6..882e898c3b639715729c431063a4c4bd89d6f45e 100644 |
--- a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc |
+++ b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc |
@@ -78,6 +78,13 @@ void AutofillProfileDataTypeController::Observe( |
DoStartAssociationAsync(); |
} |
+bool AutofillProfileDataTypeController::PostTaskOnBackendThread( |
+ const tracked_objects::Location& from_here, |
+ const base::Closure& task) { |
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ return BrowserThread::PostTask(BrowserThread::DB, from_here, task); |
+} |
+ |
void AutofillProfileDataTypeController::DoStartAssociationAsync() { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
DCHECK_EQ(state(), MODEL_STARTING); |
@@ -90,14 +97,6 @@ void AutofillProfileDataTypeController::DoStartAssociationAsync() { |
} |
} |
-bool AutofillProfileDataTypeController::StartAssociationAsync() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- DCHECK_EQ(state(), ASSOCIATING); |
- return BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, |
- base::Bind(&AutofillProfileDataTypeController::StartAssociation, |
- this)); |
-} |
- |
base::WeakPtr<SyncableService> |
AutofillProfileDataTypeController::GetWeakPtrToSyncableService() const { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); |
@@ -112,11 +111,6 @@ void AutofillProfileDataTypeController::StopModels() { |
personal_data_->RemoveObserver(this); |
} |
-void AutofillProfileDataTypeController::StopLocalServiceAsync() { |
- BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, |
- base::Bind(&AutofillProfileDataTypeController::StopLocalService, |
- this)); |
-} |
syncable::ModelType AutofillProfileDataTypeController::type() const { |
return syncable::AUTOFILL_PROFILE; |
} |