OSDN Git Service

Guard autofill correctly.
authorBen Murdoch <benm@google.com>
Tue, 8 Feb 2011 17:44:29 +0000 (17:44 +0000)
committerBen Murdoch <benm@google.com>
Tue, 8 Feb 2011 20:18:24 +0000 (20:18 +0000)
Bug: 3411200

Change-Id: I6e80795413d68ac1b7b9ada4ac44901916d6efbf

WebKit/android/jni/WebViewCore.cpp

index f5e6fdd..f48510f 100644 (file)
@@ -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