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

Unified Diff: webkit/support/platform_support_android.cc

Issue 10980016: Register Android's media/ and net/ JNI bindings when running DumpRenderTree. (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 4808d74a1241b49632856ef0d8f78c489b38c93a..278e517eb5c08f57136f930e677b9730a8ba0d41 100644
--- a/webkit/support/platform_support_android.cc
+++ b/webkit/support/platform_support_android.cc
@@ -15,7 +15,8 @@
#include "googleurl/src/gurl.h"
#include "grit/webkit_resources.h"
#include "net/android/network_library.h"
-#include "media/base/android/media_player_listener.h"
+#include "net/android/net_jni_registrar.h"
+#include "media/base/android/media_jni_registrar.h"
#include "ui/base/resource/resource_bundle.h"
#include "webkit/support/test_webkit_platform_support.h"
#include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
@@ -46,8 +47,13 @@ void BeforeInitialize(bool unit_test_mode) {
JNIEnv* env = base::android::AttachCurrentThread();
net::android::RegisterNetworkLibrary(env);
- if (!unit_test_mode)
- media::MediaPlayerListener::RegisterMediaPlayerListener(env);
+ // Chromium binaries will register their Jni bindings through the library
+ // loader that is part of content/. WebKit uses a different path, so the
+ // bindings have to be initialized separately as well.
+ if (!unit_test_mode) {
+ media::RegisterJni(env);
+ net::android::RegisterJni(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