Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index 177e5394768e4689cf09d426c43b6265159aff36..57f755c3f4733a79561f8924015723b877f66ef5 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -1852,12 +1852,21 @@ std::string BrowserView::GetClassName() const { |
void BrowserView::Layout() { |
if (ignore_layout_) |
return; |
+ |
+ int prev_content_height = contents_container_->height(); |
+ |
views::View::Layout(); |
// The status bubble position requires that all other layout finish first. |
LayoutStatusBubble(); |
MaybeStackBookmarkBarAtTop(); |
+ |
+ if (browser_->instant_controller() && |
+ prev_content_height != contents_container_->height()) { |
+ browser_->instant_controller()->SetContentHeight( |
+ contents_container_->height()); |
+ } |
} |
void BrowserView::PaintChildren(gfx::Canvas* canvas) { |