summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_window_gtk.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 20:35:37 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 20:35:37 +0000
commit24db8a07affa9456337a9b7eb1c22dffff2c0458 (patch)
tree41f2a49c5909bf54fb706628956310993c912912 /chrome/browser/gtk/browser_window_gtk.cc
parent9eabdd09a7af3be5341e4ff2627fe4023aaa0ab6 (diff)
downloadchromium_src-24db8a07affa9456337a9b7eb1c22dffff2c0458.zip
chromium_src-24db8a07affa9456337a9b7eb1c22dffff2c0458.tar.gz
chromium_src-24db8a07affa9456337a9b7eb1c22dffff2c0458.tar.bz2
Fix and re-enable a test I broke with the find bar changes I made last night.
Remove Browser::find_bar(), make everyone use either Browser::GetFindBarController() which creates the FindBarController on demand, or a new method HasFindBarController(), which can be used to check for its existence (so as to avoid creating it unnecessarily). http://crbug.com/26231 TEST=interactive ui tests, standard find tests Review URL: http://codereview.chromium.org/348015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_window_gtk.cc')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 3dedbd5..b3bee8d 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -1256,7 +1256,7 @@ void BrowserWindowGtk::TabSelectedAt(TabContents* old_contents,
if (!browser_->tabstrip_model()->closing_all()) {
new_contents->view()->RestoreFocus();
if (new_contents->find_ui_active())
- browser_->find_bar()->find_bar()->SetFocusAndSelection();
+ browser_->GetFindBarController()->find_bar()->SetFocusAndSelection();
}
// Update all the UI bits.