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() { |