Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 1143593003: Reland "Disable user gesture checking for all autofill browser tests." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.h ('k') | tools/valgrind/gtest_exclude/browser_tests.gtest-drmemory.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698