summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
index 2d92b4b..4fa0e54 100644
--- a/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
+++ b/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp
@@ -122,7 +122,7 @@ void WebAutoFill::formFieldFocused(WebCore::HTMLFormControlElement* formFieldEle
mFormManager->FindFormWithFormControlElement(formFieldElement, FormManager::REQUIRE_AUTOCOMPLETE, form);
mQueryMap[mQueryId] = form;
- bool suggestions = mAutoFillManager->GetAutoFillSuggestions(mQueryId, false, formField);
+ bool suggestions = mAutoFillManager->GetAutoFillSuggestions(false, formField);
mQueryId++;
if (!suggestions) {
ASSERT(mWebViewCore);
@@ -132,17 +132,17 @@ void WebAutoFill::formFieldFocused(WebCore::HTMLFormControlElement* formFieldEle
}
}
-void WebAutoFill::querySuccessful(int queryId, const string16& value, const string16& label, int uniqueId)
+void WebAutoFill::querySuccessful(const string16& value, const string16& label, int uniqueId)
{
if (!enabled())
return;
// Store the unique ID for the query and inform java that autofill suggestions for this form are available.
// Pass java the queryId so that it can pass it back if the user decides to use autofill.
- mUniqueIdMap[queryId] = uniqueId;
+ mUniqueIdMap[mQueryId] = uniqueId;
ASSERT(mWebViewCore);
- mWebViewCore->setWebTextViewAutoFillable(queryId, mAutoFillProfile->Label());
+ mWebViewCore->setWebTextViewAutoFillable(mQueryId, mAutoFillProfile->Label());
}
void WebAutoFill::fillFormFields(int queryId)