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

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

Issue 1312153003: jni_generator: Pass object parameters as JavaParamRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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') | content/browser/android/browser_startup_controller.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 13f20b653fefb03671974238f55eeae12b2d8e3b..986474fb2a236493c125ce9df34aa7444d50ac7a 100644
--- a/content/app/android/content_main.cc
+++ b/content/app/android/content_main.cc
@@ -28,13 +28,15 @@ LazyInstance<scoped_ptr<ContentMainDelegate> > g_content_main_delegate =
} // namespace
-static void InitApplicationContext(JNIEnv* env, jclass clazz, jobject context) {
+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);
}
-static jint Start(JNIEnv* env, jclass clazz) {
+static jint Start(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
TRACE_EVENT0("startup", "content::Start");
// On Android we can have multiple requests to start the browser in process
« no previous file with comments | « content/app/android/child_process_service.cc ('k') | content/browser/android/browser_startup_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698