| Index: chrome/browser/browsing_data/browsing_data_remover.cc
|
| diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc
|
| index ebddacc869eb61fecdb8786b6e9df93fb1e85170..09eb2645544ceb23320ca73b2e6f65e0462d1f67 100644
|
| --- a/chrome/browser/browsing_data/browsing_data_remover.cc
|
| +++ b/chrome/browser/browsing_data/browsing_data_remover.cc
|
| @@ -47,6 +47,7 @@
|
| #include "chrome/browser/sessions/session_service_factory.h"
|
| #include "chrome/browser/sessions/tab_restore_service.h"
|
| #include "chrome/browser/sessions/tab_restore_service_factory.h"
|
| +#include "chrome/browser/webdata/web_data_service_factory.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| #if defined(OS_CHROMEOS)
|
| @@ -352,7 +353,8 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask,
|
| // which these profiles and credit cards were learned. These are a form of
|
| // history, so clear them as well.
|
| scoped_refptr<autofill::AutofillWebDataService> web_data_service =
|
| - autofill::AutofillWebDataService::FromBrowserContext(profile_);
|
| + WebDataServiceFactory::GetAutofillWebDataForProfile(
|
| + profile_, Profile::EXPLICIT_ACCESS);
|
| if (web_data_service.get()) {
|
| waiting_for_clear_autofill_origin_urls_ = true;
|
| web_data_service->RemoveOriginURLsModifiedBetween(
|
| @@ -493,7 +495,8 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask,
|
| if (remove_mask & REMOVE_FORM_DATA) {
|
| content::RecordAction(UserMetricsAction("ClearBrowsingData_Autofill"));
|
| scoped_refptr<autofill::AutofillWebDataService> web_data_service =
|
| - autofill::AutofillWebDataService::FromBrowserContext(profile_);
|
| + WebDataServiceFactory::GetAutofillWebDataForProfile(
|
| + profile_, Profile::EXPLICIT_ACCESS);
|
|
|
| if (web_data_service.get()) {
|
| waiting_for_clear_form_ = true;
|
|
|