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

Unified Diff: android_webview/native/permission/aw_permission_request.h

Issue 1492703004: Pass method parameters as JavaParamRef in android_webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/permission/aw_permission_request.h
diff --git a/android_webview/native/permission/aw_permission_request.h b/android_webview/native/permission/aw_permission_request.h
index d146538a437b6da3450b8c451ff4efa53155bd13..f016799fade1882cb92c7cdb1bf84cd1eaeed253 100644
--- a/android_webview/native/permission/aw_permission_request.h
+++ b/android_webview/native/permission/aw_permission_request.h
@@ -41,8 +41,10 @@ class AwPermissionRequest {
// Invoked by Java peer when request is processed, |granted| indicates the
// request was granted or not.
- void OnAccept(JNIEnv* env, jobject jcaller, jboolean granted);
- void Destroy(JNIEnv* env, jobject obj);
+ void OnAccept(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jcaller,
+ jboolean granted);
+ void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
// Return the origin which initiated the request.
const GURL& GetOrigin();

Powered by Google App Engine
This is Rietveld 408576698