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

Unified Diff: content/browser/android/browser_startup_controller.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/content_main.cc ('k') | content/browser/android/child_process_launcher_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/browser_startup_controller.cc
diff --git a/content/browser/android/browser_startup_controller.cc b/content/browser/android/browser_startup_controller.cc
index 74e38e6283900d9233c7dab1dec723870ac35e48..124b519046f1f9a2416f10fa95a2742a80fcd033 100644
--- a/content/browser/android/browser_startup_controller.cc
+++ b/content/browser/android/browser_startup_controller.cc
@@ -26,10 +26,11 @@ bool RegisterBrowserStartupController(JNIEnv* env) {
return RegisterNativesImpl(env);
}
-static void SetCommandLineFlags(JNIEnv* env,
- jclass clazz,
- jboolean single_process,
- jstring plugin_descriptor) {
+static void SetCommandLineFlags(
+ JNIEnv* env,
+ const JavaParamRef<jclass>& clazz,
+ jboolean single_process,
+ const JavaParamRef<jstring>& plugin_descriptor) {
std::string plugin_str =
(plugin_descriptor == NULL
? std::string()
@@ -37,7 +38,8 @@ static void SetCommandLineFlags(JNIEnv* env,
SetContentCommandLineFlags(static_cast<bool>(single_process), plugin_str);
}
-static jboolean IsOfficialBuild(JNIEnv* env, jclass clazz) {
+static jboolean IsOfficialBuild(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
#if defined(OFFICIAL_BUILD)
return true;
#else
@@ -45,7 +47,8 @@ static jboolean IsOfficialBuild(JNIEnv* env, jclass clazz) {
#endif
}
-static jboolean IsPluginEnabled(JNIEnv* env, jclass clazz) {
+static jboolean IsPluginEnabled(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
#if defined(ENABLE_PLUGINS)
return true;
#else
« no previous file with comments | « content/app/android/content_main.cc ('k') | content/browser/android/child_process_launcher_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698