Chromium Code Reviews| Index: chrome/browser/autofill/personal_data_manager_factory.cc |
| diff --git a/chrome/browser/autofill/personal_data_manager_factory.cc b/chrome/browser/autofill/personal_data_manager_factory.cc |
| index 8f0b226aa9987907d7778f96d257dfaacef31c2b..65ebbfb5f636c8489ec4c9e8895d5d3e19e8e948 100644 |
| --- a/chrome/browser/autofill/personal_data_manager_factory.cc |
| +++ b/chrome/browser/autofill/personal_data_manager_factory.cc |
| @@ -16,6 +16,7 @@ |
| #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| #include "components/signin/core/browser/account_tracker_service.h" |
| #include "components/signin/core/browser/signin_manager.h" |
| +#include "content/public/browser/storage_partition.h" |
| namespace autofill { |
| @@ -46,8 +47,10 @@ PersonalDataManagerFactory::~PersonalDataManagerFactory() { |
| KeyedService* PersonalDataManagerFactory::BuildServiceInstanceFor( |
| content::BrowserContext* context) const { |
| Profile* profile = Profile::FromBrowserContext(context); |
| - PersonalDataManager* service = |
| - new PersonalDataManager(g_browser_process->GetApplicationLocale()); |
| + PersonalDataManager* service = new PersonalDataManager( |
| + g_browser_process->GetApplicationLocale(), |
| + content::BrowserContext::GetDefaultStoragePartition(context) |
| + ->GetURLRequestContext()); |
|
please use gerrit instead
2016/09/23 09:04:40
Getting the URL request context from the storage p
sebsg
2016/09/27 18:48:38
Done.
|
| service->Init(WebDataServiceFactory::GetAutofillWebDataForProfile( |
| profile, ServiceAccessType::EXPLICIT_ACCESS), |
| profile->GetPrefs(), |