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

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

Issue 15660018: [autofill] Add support for PSL domain matching for password autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile error for browsertests Created 7 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/renderer/autofill_agent.cc
diff --git a/components/autofill/renderer/autofill_agent.cc b/components/autofill/renderer/autofill_agent.cc
index c58b3a038a57a3cbe9d00f267339033165ab84f6..2cb789cc4481b63d7a7405e35aefbc49a48ba1c7 100644
--- a/components/autofill/renderer/autofill_agent.cc
+++ b/components/autofill/renderer/autofill_agent.cc
@@ -367,8 +367,9 @@ void AutofillAgent::setIgnoreTextChanges(bool ignore) {
void AutofillAgent::InputElementClicked(const WebInputElement& element,
bool was_focused,
- bool is_focused) {
- if (was_focused)
+ bool is_focused,
+ InputEventSource input_event_source) {
+ if (was_focused || input_event_source == TAP_GESTURE)
ShowSuggestions(element, true, false, true);
}

Powered by Google App Engine
This is Rietveld 408576698