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

Unified Diff: components/dom_distiller/content/browser/distillable_page_utils_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: components/dom_distiller/content/browser/distillable_page_utils_android.cc
diff --git a/components/dom_distiller/content/browser/distillable_page_utils_android.cc b/components/dom_distiller/content/browser/distillable_page_utils_android.cc
index bf1f80dbe17cca72b5bac8b267b9f84ee12c1d7e..56dfffaf18ec47497acac7f153272cbd42e6989d 100644
--- a/components/dom_distiller/content/browser/distillable_page_utils_android.cc
+++ b/components/dom_distiller/content/browser/distillable_page_utils_android.cc
@@ -25,10 +25,10 @@ void OnIsPageDistillableResult(
} // namespace
static void IsPageDistillable(JNIEnv* env,
- jclass jcaller,
- jobject webContents,
+ const JavaParamRef<jclass>& jcaller,
+ const JavaParamRef<jobject>& webContents,
jboolean is_mobile_optimized,
- jobject callback) {
+ const JavaParamRef<jobject>& callback) {
content::WebContents* web_contents(
content::WebContents::FromJavaWebContents(webContents));
scoped_ptr<ScopedJavaGlobalRef<jobject>> callback_holder(

Powered by Google App Engine
This is Rietveld 408576698