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

Unified Diff: android_webview/native/android_protocol_handler.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
« no previous file with comments | « no previous file | android_webview/native/aw_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/android_protocol_handler.cc
diff --git a/android_webview/native/android_protocol_handler.cc b/android_webview/native/android_protocol_handler.cc
index e25b36dae3efbf402399c696361e81030e974742..a2a9f6d38d7be8cb121861ab4dabeb201017183f 100644
--- a/android_webview/native/android_protocol_handler.cc
+++ b/android_webview/native/android_protocol_handler.cc
@@ -272,8 +272,9 @@ scoped_ptr<net::URLRequestInterceptor> CreateAssetFileRequestInterceptor() {
//
// |context| should be a android.content.Context instance or NULL to enable
// the use of the standard application context.
-static void SetResourceContextForTesting(JNIEnv* env, jclass /*clazz*/,
- jobject context) {
+static void SetResourceContextForTesting(JNIEnv* env,
+ const JavaParamRef<jclass>& /*clazz*/,
+ const JavaParamRef<jobject>& context) {
if (context) {
ResetResourceContext(new JavaObjectWeakGlobalRef(env, context));
} else {
@@ -281,13 +282,15 @@ static void SetResourceContextForTesting(JNIEnv* env, jclass /*clazz*/,
}
}
-static ScopedJavaLocalRef<jstring> GetAndroidAssetPath(JNIEnv* env,
- jclass /*clazz*/) {
+static ScopedJavaLocalRef<jstring> GetAndroidAssetPath(
+ JNIEnv* env,
+ const JavaParamRef<jclass>& /*clazz*/) {
return ConvertUTF8ToJavaString(env, android_webview::kAndroidAssetPath);
}
-static ScopedJavaLocalRef<jstring> GetAndroidResourcePath(JNIEnv* env,
- jclass /*clazz*/) {
+static ScopedJavaLocalRef<jstring> GetAndroidResourcePath(
+ JNIEnv* env,
+ const JavaParamRef<jclass>& /*clazz*/) {
return ConvertUTF8ToJavaString(env, android_webview::kAndroidResourcePath);
}
« no previous file with comments | « no previous file | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698