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

Unified Diff: base/android/library_loader/library_loader_hooks.cc

Issue 289303004: Allow native command line arguments to be initialized early. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Rebase More. Created 6 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
« no previous file with comments | « base/android/library_loader/library_loader_hooks.h ('k') | content/app/android/library_loader_hooks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/library_loader/library_loader_hooks.cc
diff --git a/base/android/library_loader/library_loader_hooks.cc b/base/android/library_loader/library_loader_hooks.cc
index 79470108eb33b58e6a06f1bab518e56ea6cc89b0..87f791090b0a4cb6607e8457e33adeab1e311aeb 100644
--- a/base/android/library_loader/library_loader_hooks.cc
+++ b/base/android/library_loader/library_loader_hooks.cc
@@ -4,6 +4,7 @@
#include "base/android/library_loader/library_loader_hooks.h"
+#include "base/android/command_line_android.h"
#include "base/android/jni_string.h"
#include "base/at_exit.h"
#include "base/metrics/histogram.h"
@@ -24,12 +25,16 @@ void SetLibraryLoadedHook(LibraryLoadedHook* func) {
g_registration_callback = func;
}
-static jboolean LibraryLoaded(JNIEnv* env, jclass clazz,
- jobjectArray init_command_line) {
+static void InitCommandLine(JNIEnv* env, jclass clazz,
+ jobjectArray init_command_line) {
+ InitNativeCommandLineFromJavaArray(env, init_command_line);
+}
+
+static jboolean LibraryLoaded(JNIEnv* env, jclass clazz) {
if(g_registration_callback == NULL) {
return true;
}
- return g_registration_callback(env, clazz, init_command_line);
+ return g_registration_callback(env, clazz);
}
static void RecordChromiumAndroidLinkerHistogram(
« no previous file with comments | « base/android/library_loader/library_loader_hooks.h ('k') | content/app/android/library_loader_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698