diff options
author | Kristian Monsen <kristianm@google.com> | 2011-07-25 10:31:42 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2011-07-25 16:34:09 +0100 |
commit | 826e01386cb56b34308be375ddf336894081d9a8 (patch) | |
tree | 00e906c5aab4a65e542995ed539d7fa4df0e10b3 /Source/WebKit | |
parent | 47bd03b6265feaa5a369f177e630c6dd16539abc (diff) | |
download | external_webkit-826e01386cb56b34308be375ddf336894081d9a8.zip external_webkit-826e01386cb56b34308be375ddf336894081d9a8.tar.gz external_webkit-826e01386cb56b34308be375ddf336894081d9a8.tar.bz2 |
Preparation for fixing bug 5065047: build libchromium as a shared lib
The chrome stack used to just declare the needed jni functions from
webkit and use them as they were static linked. This is not possible
when built as a shared library.
Change-Id: I1c81bc8c8e840dfda49e3941dc5a74d129030f43
Diffstat (limited to 'Source/WebKit')
-rw-r--r-- | Source/WebKit/android/WebCoreSupport/ChromiumIncludes.h | 1 | ||||
-rw-r--r-- | Source/WebKit/android/WebCoreSupport/ChromiumInit.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/ChromiumIncludes.h b/Source/WebKit/android/WebCoreSupport/ChromiumIncludes.h index 9728aad..6402702 100644 --- a/Source/WebKit/android/WebCoreSupport/ChromiumIncludes.h +++ b/Source/WebKit/android/WebCoreSupport/ChromiumIncludes.h @@ -46,6 +46,7 @@ #endif #include <android/net/android_network_library_impl.h> +#include <android/jni/jni_utils.h> #include <base/callback.h> #include <base/memory/ref_counted.h> #include <base/message_loop_proxy.h> diff --git a/Source/WebKit/android/WebCoreSupport/ChromiumInit.cpp b/Source/WebKit/android/WebCoreSupport/ChromiumInit.cpp index 2bb4d3d..500975c 100644 --- a/Source/WebKit/android/WebCoreSupport/ChromiumInit.cpp +++ b/Source/WebKit/android/WebCoreSupport/ChromiumInit.cpp @@ -27,6 +27,8 @@ #include "ChromiumInit.h" #include "ChromiumIncludes.h" +#include "JNIUtility.h" +#include "jni.h" #include <cutils/log.h> #include <string> @@ -68,6 +70,7 @@ void initChromium() networkChangeNotifier.reset(net::NetworkChangeNotifier::Create()); net::HttpNetworkLayer::EnableSpdy("npn"); initCalled = true; + jni::SetJavaVM(JSC::Bindings::getJavaVM()); } } |