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

Unified Diff: webkit/support/platform_support_android.cc

Issue 10916056: Setup network JNI for webkit_unit_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/platform_support_android.cc
diff --git a/webkit/support/platform_support_android.cc b/webkit/support/platform_support_android.cc
index 40598ab1eeb7e964ef98f3d04bc579813f021a04..4808d74a1241b49632856ef0d8f78c489b38c93a 100644
--- a/webkit/support/platform_support_android.cc
+++ b/webkit/support/platform_support_android.cc
@@ -43,13 +43,11 @@ void BeforeInitialize(bool unit_test_mode) {
// loading and complaining the non-exsistent /etc/xml/catalog file.
setenv("XML_CATALOG_FILES", "", 0);
- // For now TestWebKitAPI and webkit_unit_tests are standalone executables
- // which don't have Java capabilities. Init Java for only DumpRenderTree.
- if (!unit_test_mode) {
- JNIEnv* env = base::android::AttachCurrentThread();
+ JNIEnv* env = base::android::AttachCurrentThread();
+ net::android::RegisterNetworkLibrary(env);
+
+ if (!unit_test_mode)
media::MediaPlayerListener::RegisterMediaPlayerListener(env);
- net::android::RegisterNetworkLibrary(env);
- }
}
void AfterInitialize(bool unit_test_mode) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698