Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2696)

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/fullscreen_controller.cc ('k') | chrome/browser/ui/gtk/constrained_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 5bf1daaff493e995bf6de2bc13e384c17fbe1f0f..9914f2ed3d8fb720ea9859036e6dcc0055a07d8d 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1254,7 +1254,7 @@ void BrowserWindowGtk::ActiveTabChanged(TabContentsWrapper* old_contents,
int index,
bool user_gesture) {
if (old_contents && !old_contents->tab_contents()->is_being_destroyed())
- old_contents->view()->StoreFocus();
+ old_contents->tab_contents()->view()->StoreFocus();
// Update various elements that are interested in knowing the current
// TabContents.
@@ -1266,7 +1266,7 @@ void BrowserWindowGtk::ActiveTabChanged(TabContentsWrapper* old_contents,
// TODO(estade): after we manage browser activation, add a check to make sure
// we are the active browser before calling RestoreFocus().
if (!browser_->tabstrip_model()->closing_all()) {
- new_contents->view()->RestoreFocus();
+ new_contents->tab_contents()->view()->RestoreFocus();
if (new_contents->find_tab_helper()->find_ui_active())
browser_->GetFindBarController()->find_bar()->SetFocusAndSelection();
}
« no previous file with comments | « chrome/browser/ui/fullscreen_controller.cc ('k') | chrome/browser/ui/gtk/constrained_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698