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

Unified Diff: content/browser/android/interstitial_page_delegate_android.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/interstitial_page_delegate_android.cc
diff --git a/content/browser/android/interstitial_page_delegate_android.cc b/content/browser/android/interstitial_page_delegate_android.cc
index f598cd36a5c6dfee342ddbad2632f2394343366f..ce727ef830ed88bf199eb43dfd8aef79980e4636 100644
--- a/content/browser/android/interstitial_page_delegate_android.cc
+++ b/content/browser/android/interstitial_page_delegate_android.cc
@@ -84,7 +84,9 @@ bool InterstitialPageDelegateAndroid
return RegisterNativesImpl(env);
}
-static jlong Init(JNIEnv* env, jobject obj, jstring html_content) {
+static jlong Init(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ const JavaParamRef<jstring>& html_content) {
InterstitialPageDelegateAndroid* delegate =
new InterstitialPageDelegateAndroid(
env, obj, base::android::ConvertJavaStringToUTF8(env, html_content));
« no previous file with comments | « content/browser/android/download_controller_android_impl.cc ('k') | content/browser/android/load_url_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698