| Index: chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
|
| diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
|
| index e95bea9dbb9910071305acea2af39d3c9a7c0df9..895dfb87fa111afa9928d61b3b37236bcf431d02 100644
|
| --- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
|
| @@ -126,7 +126,8 @@ using autofill::AutofillPopupLayoutModel;
|
|
|
| NSString* value = SysUTF16ToNSString(controller_->GetElidedValueAt(i));
|
| NSString* label = SysUTF16ToNSString(controller_->GetElidedLabelAt(i));
|
| - BOOL isSelected = static_cast<int>(i) == controller_->selected_line();
|
| + BOOL isSelected =
|
| + controller_->selected_line() && i == *controller_->selected_line();
|
| [self drawSuggestionWithName:value
|
| subtext:label
|
| index:i
|
|
|