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

Unified Diff: content/app/android/content_main.cc

Issue 1324453006: jni: Remove no-longer-needed calls to NewLocalRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/app/android/child_process_service.cc ('k') | testing/android/native_test/native_test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/android/content_main.cc
diff --git a/content/app/android/content_main.cc b/content/app/android/content_main.cc
index 986474fb2a236493c125ce9df34aa7444d50ac7a..74f6783d276d091a2200775a1a3cc8a37d4eb19c 100644
--- a/content/app/android/content_main.cc
+++ b/content/app/android/content_main.cc
@@ -31,9 +31,7 @@ LazyInstance<scoped_ptr<ContentMainDelegate> > g_content_main_delegate =
static void InitApplicationContext(JNIEnv* env,
const JavaParamRef<jclass>& clazz,
const JavaParamRef<jobject>& context) {
- base::android::ScopedJavaLocalRef<jobject> scoped_context(
- env, env->NewLocalRef(context));
- base::android::InitApplicationContext(env, scoped_context);
+ base::android::InitApplicationContext(env, context);
}
static jint Start(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
« no previous file with comments | « content/app/android/child_process_service.cc ('k') | testing/android/native_test/native_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698