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 e0895328ebc90a0d4e866c3515042091c489a0a0..cb9cd9ce83f4388f5044cc7fdfead0ca39998a77 100644 |
--- a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc |
+++ b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/sync/profile_sync_components_factory.h" |
#include "chrome/browser/sync/profile_sync_service.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
#include "components/autofill/core/browser/personal_data_manager.h" |
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
#include "content/public/browser/browser_thread.h" |
@@ -51,7 +52,7 @@ void AutofillProfileDataTypeController::OnPersonalDataChanged() { |
personal_data_->RemoveObserver(this); |
autofill::AutofillWebDataService* web_data_service = |
- autofill::AutofillWebDataService::FromBrowserContext(profile()).get(); |
+ WebDataServiceFactory::GetAutofillWebDataForProfile(profile()).get(); |
if (!web_data_service) |
return; |
@@ -88,7 +89,7 @@ bool AutofillProfileDataTypeController::StartModels() { |
} |
autofill::AutofillWebDataService* web_data_service = |
- AutofillWebDataService::FromBrowserContext(profile()).get(); |
+ WebDataServiceFactory::GetAutofillWebDataForProfile(profile()).get(); |
if (!web_data_service) |
return false; |