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

Unified Diff: webkit/glue/webpasswordautocompletelistener_impl.cc

Issue 433001: Don't select a default entry in the password autofill popup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webpasswordautocompletelistener_impl.cc
===================================================================
--- webkit/glue/webpasswordautocompletelistener_impl.cc (revision 32042)
+++ webkit/glue/webpasswordautocompletelistener_impl.cc (working copy)
@@ -49,7 +49,8 @@
int default_suggestion_index) {
WebView* webview = element_.frame()->view();
if (webview)
- webview->applyAutofillSuggestions(element_, suggestions, 0);
+ webview->applyAutofillSuggestions(element_, suggestions,
+ default_suggestion_index);
}
@@ -98,7 +99,7 @@
if (show_suggestions) {
std::vector<string16> suggestions;
GetSuggestions(user_input16, &suggestions);
- username_delegate_->RefreshAutofillPopup(suggestions, 0);
+ username_delegate_->RefreshAutofillPopup(suggestions, -1);
}
if (backspace_or_delete_pressed)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698