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

Unified Diff: components/cronet/android/cronet_library_loader.cc

Issue 1326763009: jni: Forbid inappropriate JNI parameter conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN-only mojo, and chromecast 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 | « chromecast/browser/android/cast_window_manager.cc ('k') | content/shell/android/shell_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/cronet_library_loader.cc
diff --git a/components/cronet/android/cronet_library_loader.cc b/components/cronet/android/cronet_library_loader.cc
index aff1ffc4cf7c76260934b74e7dd6510fd504f57b..520f62df7c8e21baf7e098f7bed3c9b093887d92 100644
--- a/components/cronet/android/cronet_library_loader.cc
+++ b/components/cronet/android/cronet_library_loader.cc
@@ -90,9 +90,7 @@ void CronetInitApplicationContext(JNIEnv* env,
const JavaParamRef<jclass>& jcaller,
const JavaParamRef<jobject>& japp_context) {
// Set application context.
- base::android::ScopedJavaLocalRef<jobject> scoped_app_context(env,
- japp_context);
- base::android::InitApplicationContext(env, scoped_app_context);
+ base::android::InitApplicationContext(env, japp_context);
}
void CronetInitOnMainThread(JNIEnv* env, const JavaParamRef<jclass>& jcaller) {
« no previous file with comments | « chromecast/browser/android/cast_window_manager.cc ('k') | content/shell/android/shell_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698