summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 20:55:35 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 20:55:35 +0000
commitcd8c47902d23091ed28cc9aacb07cbccef7dd673 (patch)
tree87889b3b57c7f6bad0bc6621f90ff2749b334f5c /chrome/browser/views/frame/browser_view.cc
parent2b4e8a891718f8887740d90860497e64d02a8c17 (diff)
downloadchromium_src-cd8c47902d23091ed28cc9aacb07cbccef7dd673.zip
chromium_src-cd8c47902d23091ed28cc9aacb07cbccef7dd673.tar.gz
chromium_src-cd8c47902d23091ed28cc9aacb07cbccef7dd673.tar.bz2
Adds a GetWindow method to View.
Review URL: http://codereview.chromium.org/100221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_view.cc')
-rw-r--r--chrome/browser/views/frame/browser_view.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index 6f1ce19..8830d09 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -914,8 +914,7 @@ void BrowserView::TabSelectedAt(TabContents* old_contents,
// etc not result in sad tab.
new_contents->DidBecomeSelected();
if (BrowserList::GetLastActive() == browser_ &&
- !browser_->tabstrip_model()->closing_all() &&
- GetWidget()->GetWindow()->IsVisible()) {
+ !browser_->tabstrip_model()->closing_all() && GetWindow()->IsVisible()) {
// We only restore focus if our window is visible, to avoid invoking blur
// handlers when we are eventually shown.
new_contents->view()->RestoreFocus();