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

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

Issue 1278823006: Fix a few CHECK_JNI failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: content/app/android/content_main.cc
diff --git a/content/app/android/content_main.cc b/content/app/android/content_main.cc
index f322017bdbe84fec6eee9c7d3bd409982b6be467..13f20b653fefb03671974238f55eeae12b2d8e3b 100644
--- a/content/app/android/content_main.cc
+++ b/content/app/android/content_main.cc
@@ -29,7 +29,8 @@ LazyInstance<scoped_ptr<ContentMainDelegate> > g_content_main_delegate =
} // namespace
static void InitApplicationContext(JNIEnv* env, jclass clazz, jobject context) {
- base::android::ScopedJavaLocalRef<jobject> scoped_context(env, context);
+ base::android::ScopedJavaLocalRef<jobject> scoped_context(
+ env, env->NewLocalRef(context));
base::android::InitApplicationContext(env, scoped_context);
}

Powered by Google App Engine
This is Rietveld 408576698