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 39d65733e06522e911807cce1c71778d6da3c25a..c75d5d6f443a51555e923adf712f5de57a76ed2a 100644 |
--- a/components/autofill/content/renderer/autofill_agent.h |
+++ b/components/autofill/content/renderer/autofill_agent.h |
@@ -221,6 +221,10 @@ class AutofillAgent : public content::RenderFrameObserver, |
// Hides any currently showing Autofill popup. |
void HidePopup(); |
+ // Returns true if the text field change is due to a user gesture. Can be |
+ // overriden in tests. |
+ virtual bool IsUserGesture() const; |
+ |
// Formerly cached forms for all frames, now only caches forms for the current |
// frame. |
FormCache form_cache_; |