Index: components/autofill/content/renderer/autofill_agent.h |
diff --git a/components/autofill/content/renderer/autofill_agent.h b/components/autofill/content/renderer/autofill_agent.h |
index da555e446f3aa6fd384ee1017358ae1b768fa251..074af74c436762b46333ec85541ac42428a8592f 100644 |
--- a/components/autofill/content/renderer/autofill_agent.h |
+++ b/components/autofill/content/renderer/autofill_agent.h |
@@ -54,6 +54,10 @@ class AutofillAgent : public content::RenderFrameObserver, |
PasswordGenerationAgent* password_generation_agent); |
virtual ~AutofillAgent(); |
+ void DisableUserGestureCheckForTests() { |
+ disable_user_gesture_check_ = true; |
+ } |
+ |
private: |
// Functor used as a simplified comparison function for FormData. |
struct FormDataCompare { |
@@ -274,6 +278,10 @@ class AutofillAgent : public content::RenderFrameObserver, |
// messages to close the Autofill popup when it can't possibly be showing. |
bool is_popup_possibly_visible_; |
+ // If true, then user gestures are not required for processing text edit |
+ // notifications. Used only in tests. |
+ bool disable_user_gesture_check_; |
+ |
base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |