| Index: chrome/browser/ui/views/frame/browser_view_layout.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_view_layout.cc b/chrome/browser/ui/views/frame/browser_view_layout.cc
|
| index 67edff3ffe395d9db05dbe8f93ebd98ddce5a427..1cfcf5d626590b6ec25de78afcb3b9e5c2b46001 100644
|
| --- a/chrome/browser/ui/views/frame/browser_view_layout.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_view_layout.cc
|
| @@ -467,13 +467,10 @@ int BrowserViewLayout::LayoutInfoBar(int top) {
|
| }
|
| // Raise the |infobar_container_| by its vertical overlap.
|
| infobar_container_->SetVisible(InfobarVisible());
|
| - int height;
|
| - int overlapped_top = top - infobar_container_->GetVerticalOverlap(&height);
|
| - infobar_container_->SetBounds(vertical_layout_rect_.x(),
|
| - overlapped_top,
|
| - vertical_layout_rect_.width(),
|
| - height);
|
| - return overlapped_top + height;
|
| + infobar_container_->SetBounds(
|
| + vertical_layout_rect_.x(), top, vertical_layout_rect_.width(),
|
| + infobar_container_->GetPreferredSize().height());
|
| + return top + infobar_container_->height();
|
| }
|
|
|
| void BrowserViewLayout::LayoutContentsContainerView(int top, int bottom) {
|
|
|