| Index: chrome/browser/sync/glue/autofill_data_type_controller.cc
|
| diff --git a/chrome/browser/sync/glue/autofill_data_type_controller.cc b/chrome/browser/sync/glue/autofill_data_type_controller.cc
|
| index 761f1ec322feaad08a595197a99b7fa44b9843d2..ba545531e02ea69d93268406fd585e821f343569 100644
|
| --- a/chrome/browser/sync/glue/autofill_data_type_controller.cc
|
| +++ b/chrome/browser/sync/glue/autofill_data_type_controller.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/metrics/histogram.h"
|
| #include "base/task.h"
|
| #include "chrome/browser/autofill/personal_data_manager.h"
|
| +#include "chrome/browser/autofill/personal_data_manager_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/sync/profile_sync_factory.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| @@ -35,7 +36,7 @@ bool AutofillDataTypeController::StartModels() {
|
| // Waiting for the personal data is subtle: we do this as the PDM resets
|
| // its cache of unique IDs once it gets loaded. If we were to proceed with
|
| // association, the local ids in the mappings would wind up colliding.
|
| - personal_data_ = profile()->GetPersonalDataManager();
|
| + personal_data_ = PersonalDataManagerFactory::GetForProfile(profile());
|
| if (!personal_data_->IsDataLoaded()) {
|
| personal_data_->SetObserver(this);
|
| return false;
|
| @@ -96,7 +97,6 @@ void AutofillDataTypeController::CreateSyncComponents() {
|
| CreateAutofillSyncComponents(
|
| profile_sync_service(),
|
| web_data_service_->GetDatabase(),
|
| - personal_data_,
|
| this);
|
| set_model_associator(sync_components.model_associator);
|
| set_change_processor(sync_components.change_processor);
|
|
|