summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreJni.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/WebCoreJni.cpp')
-rw-r--r--WebKit/android/jni/WebCoreJni.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebCoreJni.cpp b/WebKit/android/jni/WebCoreJni.cpp
index 1b9619b..0ead46b 100644
--- a/WebKit/android/jni/WebCoreJni.cpp
+++ b/WebKit/android/jni/WebCoreJni.cpp
@@ -71,6 +71,13 @@ WTF::String jstringToWtfString(JNIEnv* env, jstring str)
return ret;
}
+jstring WtfStringToJstring(JNIEnv* env, const WTF::String& str)
+{
+ int length = str.length();
+ return length ? env->NewString(str.characters(), length) : 0;
+}
+
+
#if USE(CHROME_NETWORK_STACK)
string16 jstringToString16(JNIEnv* env, jstring jstr)
{