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

Unified Diff: mojo/runner/android/main.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 | « mojo/android/javatests/mojo_test_case.cc ('k') | remoting/client/jni/chromoting_jni_runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/android/main.cc
diff --git a/mojo/runner/android/main.cc b/mojo/runner/android/main.cc
index b5717cca784c63495f2e58aa454a2378a6b21ba4..2b4de3f70fa9820849c2739473135d2f9f40c242 100644
--- a/mojo/runner/android/main.cc
+++ b/mojo/runner/android/main.cc
@@ -114,8 +114,7 @@ static void Init(JNIEnv* env,
base::android::ConvertJavaStringToUTF8(env, j_tmp_dir).c_str(), 1);
DCHECK_EQ(return_value, 0);
- base::android::ScopedJavaLocalRef<jobject> scoped_activity(env, activity);
- base::android::InitApplicationContext(env, scoped_activity);
+ base::android::InitApplicationContext(env, activity);
std::vector<std::string> parameters;
parameters.push_back(
« no previous file with comments | « mojo/android/javatests/mojo_test_case.cc ('k') | remoting/client/jni/chromoting_jni_runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698