| Index: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| index e922e5be771080537c7001c56c28568ab3a2732f..a9ee5da2180115f2c7bcc445d5a6d780dc08d313 100644
|
| --- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| +++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
|
| @@ -18,6 +18,7 @@
|
| #include "chrome/browser/ui/browser_window.h"
|
| #include "chrome/browser/ui/chrome_pages.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
|
| +#include "chrome/browser/webdata/web_data_service_factory.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "components/autofill/content/browser/autofill_driver_impl.h"
|
| #include "components/autofill/core/common/autofill_messages.h"
|
| @@ -62,8 +63,9 @@ PersonalDataManager* TabAutofillManagerDelegate::GetPersonalDataManager() {
|
|
|
| scoped_refptr<AutofillWebDataService>
|
| TabAutofillManagerDelegate::GetDatabase() {
|
| - return AutofillWebDataService::FromBrowserContext(
|
| - web_contents_->GetBrowserContext());
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(web_contents_->GetBrowserContext());
|
| + return WebDataServiceFactory::GetAutofillWebDataForProfile(profile);
|
| }
|
|
|
| PrefService* TabAutofillManagerDelegate::GetPrefs() {
|
|
|