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

Unified Diff: testing/android/native_test/native_test_launcher.cc

Issue 1407233017: Define a Java-side global application context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: testing/android/native_test/native_test_launcher.cc
diff --git a/testing/android/native_test/native_test_launcher.cc b/testing/android/native_test/native_test_launcher.cc
index 0f14ff9f52c8364f6d2d962da26ff0ffa86cba1b..38040e90747a1e1a6caf60e31158637221183963 100644
--- a/testing/android/native_test/native_test_launcher.cc
+++ b/testing/android/native_test/native_test_launcher.cc
@@ -64,21 +64,21 @@ void AndroidLog(int priority, const char* format, ...) {
} // namespace
+static void InitBasicJNI(JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ base::android::RegisterJni(env);
+}
+
static void RunTests(JNIEnv* env,
const JavaParamRef<jobject>& obj,
const JavaParamRef<jstring>& jcommand_line_flags,
const JavaParamRef<jstring>& jcommand_line_file_path,
const JavaParamRef<jstring>& jstdout_file_path,
- jboolean jstdout_fifo,
- const JavaParamRef<jobject>& app_context) {
+ jboolean jstdout_fifo) {
// Command line initialized basically, will be fully initialized later.
static const char* const kInitialArgv[] = { "ChromeTestActivity" };
base::CommandLine::Init(arraysize(kInitialArgv), kInitialArgv);
- // Set the application context in base.
- base::android::InitApplicationContext(env, app_context);
- base::android::RegisterJni(env);
-
std::vector<std::string> args;
const std::string command_line_file_path(

Powered by Google App Engine
This is Rietveld 408576698