Index: chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
index f8ad16ca04b7c300924d6bdd88adfb5f1ec98bf9..6b3c27ebd5ff0534bec5e8f1938c54c90aa9c302 100644 |
--- a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc |
@@ -155,7 +155,8 @@ void TabContentsViewViews::Focus() { |
} |
RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView(); |
- gtk_widget_grab_focus(rwhv ? rwhv->GetNativeView() : GetNativeView()); |
+ if (rwhv) |
+ rwhv->Focus(); |
} |
void TabContentsViewViews::SetInitialFocus() { |