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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc

Issue 148413002: Add "previewing on hover" support for single-field autocomplete input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and update code as per Ilya's comments Created 6 years, 9 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: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
index 17411895ec7062833b9d6e42b8f5297c603fe8fc..36576c9f7c2adad0890754383e9393c0bfa5ddec 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
@@ -438,10 +438,12 @@ void AutofillPopupControllerImpl::SetSelectedLine(int selected_line) {
selected_line_ = selected_line;
- if (selected_line_ != kNoSelection)
- delegate_->DidSelectSuggestion(identifiers_[selected_line_]);
- else
+ if (selected_line_ != kNoSelection) {
+ delegate_->DidSelectSuggestion(names_[selected_line_],
+ identifiers_[selected_line_]);
+ } else {
delegate_->ClearPreviewedForm();
+ }
}
void AutofillPopupControllerImpl::SelectNextLine() {

Powered by Google App Engine
This is Rietveld 408576698