Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index 2a3d284d246b607ab95d9220ab99acb0e78c72af..a4515f68f18868d2e691757e772277b34d27a70f 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -1046,10 +1046,15 @@ void BrowserView::FocusBookmarksToolbar() { |
if (bookmark_bar_view_.get() && |
bookmark_bar_view_->visible() && |
bookmark_bar_view_->GetPreferredSize().height() != 0) { |
- bookmark_bar_view_->SetPaneFocus(bookmark_bar_view_.get()); |
+ bookmark_bar_view_->SetPaneFocusAndFocusDefault(); |
} |
} |
+void BrowserView::FocusInfobars() { |
+ if (infobar_container_->child_count() > 0) |
+ infobar_container_->SetPaneFocusAndFocusDefault(); |
+} |
+ |
void BrowserView::FocusAppMenu() { |
// Chrome doesn't have a traditional menu bar, but it has a menu button in the |
// main toolbar that plays the same role. If the user presses a key that |