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

Unified Diff: android_webview/native/aw_contents.cc

Issue 2103243002: Factor out ContentViewAndroidDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698