Index: content/shell/shell_web_contents_view_delegate_gtk.cc |
diff --git a/content/shell/shell_web_contents_view_delegate_gtk.cc b/content/shell/shell_web_contents_view_delegate_gtk.cc |
index ce354ef21d9f7d4909b2c20ef7192d94ab9dd92a..cd72e03c359427b928f72da75245531658154960 100644 |
--- a/content/shell/shell_web_contents_view_delegate_gtk.cc |
+++ b/content/shell/shell_web_contents_view_delegate_gtk.cc |
@@ -196,17 +196,17 @@ gboolean ShellWebContentsViewDelegate::OnNativeViewFocusEvent( |
void ShellWebContentsViewDelegate::OnBackMenuActivated(GtkWidget* widget) { |
web_contents_->GetController().GoToOffset(-1); |
- web_contents_->Focus(); |
+ web_contents_->GetView()->Focus(); |
} |
void ShellWebContentsViewDelegate::OnForwardMenuActivated(GtkWidget* widget) { |
web_contents_->GetController().GoToOffset(1); |
- web_contents_->Focus(); |
+ web_contents_->GetView()->Focus(); |
} |
void ShellWebContentsViewDelegate::OnReloadMenuActivated(GtkWidget* widget) { |
web_contents_->GetController().Reload(false); |
- web_contents_->Focus(); |
+ web_contents_->GetView()->Focus(); |
} |
void ShellWebContentsViewDelegate::OnOpenURLMenuActivated(GtkWidget* widget) { |