| Index: android_webview/native/aw_contents.cc
|
| diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
|
| index 9d01a230840662c5a2f6af9d52cfdf83b4ee4541..85768b50035282f941dc2b924f98f59be700c605 100644
|
| --- a/android_webview/native/aw_contents.cc
|
| +++ b/android_webview/native/aw_contents.cc
|
| @@ -266,8 +266,14 @@ void AwContents::InitAutofillIfNecessary(bool enabled) {
|
| return;
|
|
|
| AwAutofillClient::CreateForWebContents(web_contents);
|
| + ContentViewCore* cvc =
|
| + ContentViewCore::FromWebContents(web_contents_.get());
|
| + DCHECK(cvc);
|
| + AwAutofillClient* autofill_client =
|
| + AwAutofillClient::FromWebContents(web_contents);
|
| + autofill_client->SetViewAndroid(cvc->GetViewAndroid());
|
| ContentAutofillDriverFactory::CreateForWebContentsAndDelegate(
|
| - web_contents, AwAutofillClient::FromWebContents(web_contents),
|
| + web_contents, autofill_client,
|
| base::android::GetDefaultLocale(),
|
| AutofillManager::DISABLE_AUTOFILL_DOWNLOAD_MANAGER);
|
| }
|
|
|