summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/find_bar_win.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 22:04:15 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 22:04:15 +0000
commita5a7eb258c1d2092f671e38a83b8eeb3931e4ed3 (patch)
treedda2ba507920cbbc7d80be98e78eed92681cb95e /chrome/browser/views/find_bar_win.cc
parent6242f020fdcfdba371613270beeb89f5bf606d11 (diff)
downloadchromium_src-a5a7eb258c1d2092f671e38a83b8eeb3931e4ed3.zip
chromium_src-a5a7eb258c1d2092f671e38a83b8eeb3931e4ed3.tar.gz
chromium_src-a5a7eb258c1d2092f671e38a83b8eeb3931e4ed3.tar.bz2
Removes the old frames.
http://crbug.com/2324 Review URL: http://codereview.chromium.org/10265 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/find_bar_win.cc')
-rw-r--r--chrome/browser/views/find_bar_win.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/views/find_bar_win.cc b/chrome/browser/views/find_bar_win.cc
index 1633981..d0c0889 100644
--- a/chrome/browser/views/find_bar_win.cc
+++ b/chrome/browser/views/find_bar_win.cc
@@ -482,11 +482,7 @@ void FindBarWin::GetDialogBounds(gfx::Rect* bounds) {
// Find the dimensions of the toolbar and the BookmarkBar.
gfx::Rect toolbar_bounds, bookmark_bar_bounds;
if (toolbar) {
- if (!g_browser_process->IsUsingNewFrames()) {
- toolbar_bounds = toolbar->bounds();
- } else {
- toolbar_bounds = toolbar->GetLocalBounds(false);
- }
+ toolbar_bounds = toolbar->GetLocalBounds(false);
// Need to convert toolbar bounds into Container coords because the toolbar
// is the child of another view that isn't the top level view. This is
// required to ensure correct positioning relative to the top,left of the