Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: chrome/browser/autofill/personal_data_manager_factory.cc

Issue 2338283003: [Payments] Normalize addresses before passing them to merchants. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
service->Init(WebDataServiceFactory::GetAutofillWebDataForProfile(
profile, ServiceAccessType::EXPLICIT_ACCESS),
profile->GetPrefs(),

Powered by Google App Engine
This is Rietveld 408576698