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

Unified Diff: base/test/test_support_android.cc

Issue 2169553002: Properly throw java exceptions from shouldOverrideUrlLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused file. Created 4 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
Index: base/test/test_support_android.cc
diff --git a/base/test/test_support_android.cc b/base/test/test_support_android.cc
index c35e6197fc2bb02981793f7caadcaaa33ac63e29..e75cb95ffa8881e3688ef568b7efee6594c58752 100644
--- a/base/test/test_support_android.cc
+++ b/base/test/test_support_android.cc
@@ -5,6 +5,7 @@
#include <stdarg.h>
#include <string.h>
+#include "base/android/jni_android.h"
#include "base/android/path_utils.h"
#include "base/files/file_path.h"
#include "base/logging.h"
@@ -14,6 +15,7 @@
#include "base/message_loop/message_pump_android.h"
#include "base/path_service.h"
#include "base/synchronization/waitable_event.h"
+#include "base/test/android/test_system_message_handler_link_android.h"
#include "base/test/multiprocess_test.h"
namespace {
@@ -189,6 +191,8 @@ void InitAndroidTest() {
if (!base::AndroidIsChildProcess()) {
InitAndroidTestLogging();
}
+ base::android::TestSystemMessageHandlerLink::RegisterJNI(
+ base::android::AttachCurrentThread());
InitAndroidTestMessageLoop();
}
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698