Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4010)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 11413018: alternate ntp: implement searchbox api for instant overlay to adopt themes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed scott's comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698