diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 01:20:31 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 01:20:31 +0000 |
commit | 12e3ddfe2c56cd42ead35253aecda08afed93c93 (patch) | |
tree | 7a0e08be91fdc5d632eb24b54f386156c745b691 /chrome | |
parent | 14d883b46fe87f3ec78875153a5bfa3b75977657 (diff) | |
download | chromium_src-12e3ddfe2c56cd42ead35253aecda08afed93c93.zip chromium_src-12e3ddfe2c56cd42ead35253aecda08afed93c93.tar.gz chromium_src-12e3ddfe2c56cd42ead35253aecda08afed93c93.tar.bz2 |
Fixes the interactive ui tests by correctly initializing the specified popup bounds.
TBR=erg
Review URL: http://codereview.chromium.org/10724
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5429 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 3 |
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 17127ba..1cb672c 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -600,6 +600,7 @@ void BrowserView::SaveWindowPlacement(const gfx::Rect& bounds, } bool BrowserView::GetSavedWindowBounds(gfx::Rect* bounds) const { + *bounds = browser_->GetSavedWindowBounds(); if (browser_->type() == BrowserType::BROWSER) { // We are a popup window. The value passed in |bounds| represents two // pieces of information: @@ -630,8 +631,6 @@ bool BrowserView::GetSavedWindowBounds(gfx::Rect* bounds) const { } *bounds = window_rect; - } else { - *bounds = browser_->GetSavedWindowBounds(); } // We return true because we can _always_ locate reasonable bounds using the |