| 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 127adfce367399a7abea5fe5cad98feb0a1829f8..1ccfe9eeca5bea5f7229be81c0c1090d444d8690 100644
|
| --- a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
|
| +++ b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
|
| @@ -14,6 +14,7 @@
|
| #include "chrome/browser/sync/profile_sync_components_factory.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| #include "chrome/browser/webdata/web_data_service.h"
|
| +#include "chrome/browser/webdata/web_data_service_factory.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/notification_service.h"
|
| @@ -47,7 +48,8 @@ bool AutofillProfileDataTypeController::StartModels() {
|
| return false;
|
| }
|
|
|
| - web_data_service_ = profile()->GetWebDataService(Profile::IMPLICIT_ACCESS);
|
| + web_data_service_ = WebDataServiceFactory::GetForProfile(
|
| + profile(), Profile::IMPLICIT_ACCESS);
|
| if (web_data_service_.get() && web_data_service_->IsDatabaseLoaded()) {
|
| return true;
|
| } else {
|
| @@ -61,7 +63,8 @@ void AutofillProfileDataTypeController::OnPersonalDataChanged() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| DCHECK_EQ(state(), MODEL_STARTING);
|
| personal_data_->RemoveObserver(this);
|
| - web_data_service_ = profile()->GetWebDataService(Profile::IMPLICIT_ACCESS);
|
| + web_data_service_ = WebDataServiceFactory::GetForProfile(
|
| + profile(), Profile::IMPLICIT_ACCESS);
|
| if (web_data_service_.get() && web_data_service_->IsDatabaseLoaded()) {
|
| DoStartAssociationAsync();
|
| } else {
|
|
|