summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebViewCore.cpp
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-02-08 17:44:29 +0000
committerBen Murdoch <benm@google.com>2011-02-08 20:18:24 +0000
commit1c4d3a50f07f16788764443f83d81e0941a7d2bf (patch)
tree6c918e91ff51d8e3d7a073628bdb417e963185a8 /WebKit/android/jni/WebViewCore.cpp
parent0608c0b6c3b0fb9fd9d2a36b1507ead7c0d78a10 (diff)
downloadexternal_webkit-1c4d3a50f07f16788764443f83d81e0941a7d2bf.zip
external_webkit-1c4d3a50f07f16788764443f83d81e0941a7d2bf.tar.gz
external_webkit-1c4d3a50f07f16788764443f83d81e0941a7d2bf.tar.bz2
Guard autofill correctly.
Bug: 3411200 Change-Id: I6e80795413d68ac1b7b9ada4ac44901916d6efbf
Diffstat (limited to 'WebKit/android/jni/WebViewCore.cpp')
-rw-r--r--WebKit/android/jni/WebViewCore.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp
index f5e6fdd..f48510f 100644
--- a/WebKit/android/jni/WebViewCore.cpp
+++ b/WebKit/android/jni/WebViewCore.cpp
@@ -3668,10 +3668,12 @@ void WebViewCore::notifyWebAppCanBeInstalled()
void WebViewCore::setWebTextViewAutoFillable(int queryId, const string16& previewSummary)
{
+#if ENABLE(WEB_AUTOFILL)
JNIEnv* env = JSC::Bindings::getJNIEnv();
jstring preview = env->NewString(previewSummary.data(), previewSummary.length());
env->CallVoidMethod(m_javaGlue->object(env).get(), m_javaGlue->m_setWebTextViewAutoFillable, queryId, preview);
env->DeleteLocalRef(preview);
+#endif
}
bool WebViewCore::drawIsPaused() const