Index: components/autofill/content/renderer/autofill_agent.cc |
diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc |
index b994e4d4efbdc306de76a6a47f92a40686c33697..bf1f54a3a13beb0f25d6dcec881e19512ad53dcb 100644 |
--- a/components/autofill/content/renderer/autofill_agent.cc |
+++ b/components/autofill/content/renderer/autofill_agent.cc |
@@ -388,7 +388,7 @@ void AutofillAgent::textFieldDidChange(const WebFormControlElement& element) { |
if (ignore_text_changes_) |
return; |
- if (!WebUserGestureIndicator::isProcessingUserGesture()) |
+ if (!IsUserGesture()) |
return; |
// We post a task for doing the Autofill as the caret position is not set |
@@ -752,6 +752,10 @@ void AutofillAgent::HidePopup() { |
Send(new AutofillHostMsg_HidePopup(routing_id())); |
} |
+bool AutofillAgent::IsUserGesture() const { |
+ return WebUserGestureIndicator::isProcessingUserGesture(); |
+} |
+ |
void AutofillAgent::didAssociateFormControls(const WebVector<WebNode>& nodes) { |
for (size_t i = 0; i < nodes.size(); ++i) { |
WebLocalFrame* frame = nodes[i].document().frame(); |