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

Unified Diff: android_webview/native/aw_autofill_client.cc

Issue 2295693004: Pass JavaRef to Java methods in android_webview. (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | android_webview/native/aw_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_autofill_client.cc
diff --git a/android_webview/native/aw_autofill_client.cc b/android_webview/native/aw_autofill_client.cc
index 194372eb3a451050bf9728f049c715862eba20d5..09bf0a9ec733fc7a099f707ba6eb6cf481d8a22f 100644
--- a/android_webview/native/aw_autofill_client.cc
+++ b/android_webview/native/aw_autofill_client.cc
@@ -50,8 +50,8 @@ AwAutofillClient::AwAutofillClient(WebContents* contents)
Java_AwAutofillClient_create(env, reinterpret_cast<intptr_t>(this)));
AwContents* aw_contents = AwContents::FromWebContents(web_contents_);
- aw_contents->SetAwAutofillClient(delegate.obj());
- java_ref_ = JavaObjectWeakGlobalRef(env, delegate.obj());
+ aw_contents->SetAwAutofillClient(delegate);
+ java_ref_ = JavaObjectWeakGlobalRef(env, delegate);
}
AwAutofillClient::~AwAutofillClient() {
« no previous file with comments | « no previous file | android_webview/native/aw_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698