| 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 0f880a741a66933441dccc7ff548ce7bbccf66e3..eb652d99aada72cabf9d08db10ceda4d34548f0d 100644
|
| --- a/testing/android/native_test/native_test_launcher.cc
|
| +++ b/testing/android/native_test/native_test_launcher.cc
|
| @@ -75,6 +75,10 @@
|
| static const char* const kInitialArgv[] = { "ChromeTestActivity" };
|
| base::CommandLine::Init(arraysize(kInitialArgv), kInitialArgv);
|
|
|
| + // Set the application context in base.
|
| + base::android::RegisterJni(env);
|
| + base::android::InitApplicationContext(env, app_context);
|
| +
|
| std::vector<std::string> args;
|
|
|
| const std::string command_line_file_path(
|
| @@ -129,9 +133,6 @@
|
| }
|
|
|
| bool RegisterNativeTestJNI(JNIEnv* env) {
|
| - if (!base::android::RegisterJni(env)) {
|
| - return false;
|
| - }
|
| return RegisterNativesImpl(env);
|
| }
|
|
|
|
|