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

Unified Diff: chrome/browser/android/offline_pages/offline_page_bridge.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/offline_pages/offline_page_bridge.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_bridge.cc b/chrome/browser/android/offline_pages/offline_page_bridge.cc
index bc7e611779a74a19884fde69e1d41fcf2f162b68..4c3c3d529703bae13f1aeb09d9a818d1acb7a490 100644
--- a/chrome/browser/android/offline_pages/offline_page_bridge.cc
+++ b/chrome/browser/android/offline_pages/offline_page_bridge.cc
@@ -67,7 +67,8 @@ void ToJavaOfflinePageList(JNIEnv* env,
} // namespace
-static jboolean IsOfflinePagesEnabled(JNIEnv* env, jclass clazz) {
+static jboolean IsOfflinePagesEnabled(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
return offline_pages::IsOfflinePagesEnabled();
}
@@ -215,7 +216,9 @@ base::FilePath OfflinePageBridge::GetDownloadsPath(
return DownloadPrefs::FromDownloadManager(manager)->DownloadPath();
}
-static jlong Init(JNIEnv* env, jobject obj, jobject j_profile) {
+static jlong Init(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ const JavaParamRef<jobject>& j_profile) {
return reinterpret_cast<jlong>(new OfflinePageBridge(
env, obj, ProfileAndroid::FromProfileAndroid(j_profile)));
}
« no previous file with comments | « chrome/browser/android/new_tab_page_prefs.cc ('k') | chrome/browser/android/omnibox/answers_image_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698