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

Unified Diff: android_webview/native/aw_contents_io_thread_client_impl.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
Index: android_webview/native/aw_contents_io_thread_client_impl.cc
diff --git a/android_webview/native/aw_contents_io_thread_client_impl.cc b/android_webview/native/aw_contents_io_thread_client_impl.cc
index 264066723b9b97dbebae67a6b9593a9a196ca552..4080b9b5317a08cd611bde5579e9e220d559e123 100644
--- a/android_webview/native/aw_contents_io_thread_client_impl.cc
+++ b/android_webview/native/aw_contents_io_thread_client_impl.cc
@@ -328,14 +328,10 @@ std::unique_ptr<AwWebResourceResponse> RunShouldInterceptRequest(
"shouldInterceptRequest");
ScopedJavaLocalRef<jobject> ret =
AwContentsBackgroundThreadClient::shouldInterceptRequest(
- env,
- obj.obj(),
- web_request.jstring_url.obj(),
- web_request.is_main_frame,
- web_request.has_user_gesture,
- web_request.jstring_method.obj(),
- web_request.jstringArray_header_names.obj(),
- web_request.jstringArray_header_values.obj());
+ env, obj, web_request.jstring_url, web_request.is_main_frame,
+ web_request.has_user_gesture, web_request.jstring_method,
+ web_request.jstringArray_header_names,
+ web_request.jstringArray_header_values);
return std::unique_ptr<AwWebResourceResponse>(
ret.is_null() ? nullptr : new AwWebResourceResponseImpl(ret));
}
« no previous file with comments | « android_webview/native/aw_contents_client_bridge_unittest.cc ('k') | android_webview/native/aw_contents_statics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698