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

Unified Diff: chrome/browser/android/contextualsearch/contextual_search_tab_helper.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: chrome/browser/android/contextualsearch/contextual_search_tab_helper.cc
diff --git a/chrome/browser/android/contextualsearch/contextual_search_tab_helper.cc b/chrome/browser/android/contextualsearch/contextual_search_tab_helper.cc
index 6e635c5a92cfc6a43e25090bdc3070c930ea38c1..8dfc691d2837a19a6fa92453508837434001d59b 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_tab_helper.cc
+++ b/chrome/browser/android/contextualsearch/contextual_search_tab_helper.cc
@@ -40,7 +40,9 @@ void ContextualSearchTabHelper::Destroy(JNIEnv* env, jobject obj) {
delete this;
}
-static jlong Init(JNIEnv* env, jobject obj, jobject java_profile) {
+static jlong Init(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ const JavaParamRef<jobject>& java_profile) {
Profile* profile = ProfileAndroid::FromProfileAndroid(java_profile);
CHECK(profile);
ContextualSearchTabHelper* tab = new ContextualSearchTabHelper(

Powered by Google App Engine
This is Rietveld 408576698