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

Unified Diff: content/browser/android/download_controller_android_impl.cc

Issue 1312153003: jni_generator: Pass object parameters as JavaParamRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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: content/browser/android/download_controller_android_impl.cc
diff --git a/content/browser/android/download_controller_android_impl.cc b/content/browser/android/download_controller_android_impl.cc
index 5d21117faeb170b3d8960ed1b171485aeaa73ee5..13037ca7aa7c39726c069863f4ebff00b6095531 100644
--- a/content/browser/android/download_controller_android_impl.cc
+++ b/content/browser/android/download_controller_android_impl.cc
@@ -99,12 +99,14 @@ void CreateContextMenuDownload(int render_process_id,
namespace content {
// JNI methods
-static void Init(JNIEnv* env, jobject obj) {
+static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
DownloadControllerAndroidImpl::GetInstance()->Init(env, obj);
}
-static void OnRequestFileAccessResult(
- JNIEnv* env, jobject obj, jlong callback_id, jboolean granted) {
+static void OnRequestFileAccessResult(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ jlong callback_id,
+ jboolean granted) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(callback_id);
« no previous file with comments | « content/browser/android/content_view_statics.cc ('k') | content/browser/android/interstitial_page_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698