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

Unified Diff: chromecast/browser/android/cast_window_manager.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
Index: chromecast/browser/android/cast_window_manager.cc
diff --git a/chromecast/browser/android/cast_window_manager.cc b/chromecast/browser/android/cast_window_manager.cc
index c4e2f1274eaf582c7b61d2bf4e5771bb192f56eb..7a0c51f609d05243d98455e67320fb586a485c1b 100644
--- a/chromecast/browser/android/cast_window_manager.cc
+++ b/chromecast/browser/android/cast_window_manager.cc
@@ -55,8 +55,7 @@ bool RegisterCastWindowManager(JNIEnv* env) {
void Init(JNIEnv* env,
const JavaParamRef<jclass>& clazz,
const JavaParamRef<jobject>& obj) {
- g_window_manager.Get().Reset(
- base::android::ScopedJavaLocalRef<jobject>(env, obj));
+ g_window_manager.Get().Reset(obj);
}
jlong LaunchCastWindow(JNIEnv* env,
« no previous file with comments | « chrome/browser/android/preferences/website_preference_bridge.cc ('k') | components/cronet/android/cronet_library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698