Index: android_webview/native/aw_autofill_manager_delegate.cc |
diff --git a/android_webview/native/aw_autofill_manager_delegate.cc b/android_webview/native/aw_autofill_manager_delegate.cc |
index c05666111871c96a1b45d963987d43fbe6c5144d..06eec05314185d14ddc13c74a71a802d845697bb 100644 |
--- a/android_webview/native/aw_autofill_manager_delegate.cc |
+++ b/android_webview/native/aw_autofill_manager_delegate.cc |
@@ -16,6 +16,7 @@ |
#include "base/prefs/pref_service.h" |
#include "base/prefs/pref_service_builder.h" |
#include "components/autofill/core/browser/autofill_popup_delegate.h" |
+#include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
#include "components/autofill/core/common/autofill_pref_names.h" |
#include "components/user_prefs/user_prefs.h" |
#include "content/public/browser/web_contents.h" |
@@ -70,6 +71,12 @@ AwAutofillManagerDelegate::GetPersonalDataManager() { |
return NULL; |
} |
+scoped_refptr<autofill::AutofillWebDataService> |
+AwAutofillManagerDelegate::GetDatabase() { |
+ return autofill::AutofillWebDataService::FromBrowserContext( |
+ web_contents_->GetBrowserContext()); |
+} |
+ |
void AwAutofillManagerDelegate::ShowAutofillPopup( |
const gfx::RectF& element_bounds, |
base::i18n::TextDirection text_direction, |