Index: chrome/browser/ui/views/infobars/infobar_view.cc |
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc |
index 567700777bcb40eae7b19ccf2b46c02cc19bbc0d..a804f4b5404e629b25ff184b071240cd228e1cca 100644 |
--- a/chrome/browser/ui/views/infobars/infobar_view.cc |
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc |
@@ -160,7 +160,7 @@ views::LabelButton* InfoBarView::CreateTextButton( |
button->set_animate_on_state_change(false); |
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
button->SetFontList(rb.GetFontList(ui::ResourceBundle::MediumFont)); |
- button->SetFocusBehavior(FocusBehavior::ALWAYS); |
+ views::Button::ConfigureDefaultFocus(button); |
button->SetTextColor(views::Button::STATE_NORMAL, GetInfobarTextColor()); |
button->SetTextColor(views::Button::STATE_HOVERED, GetInfobarTextColor()); |
return button; |
@@ -289,7 +289,7 @@ void InfoBarView::ViewHierarchyChanged( |
} |
close_button_->SetAccessibleName( |
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE)); |
- close_button_->SetFocusBehavior(FocusBehavior::ALWAYS); |
+ views::Button::ConfigureDefaultFocus(close_button_); |
// Subclasses should already be done adding child views by this point (see |
// related DCHECK in Layout()). |
child_container_->AddChildView(close_button_); |