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

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

Issue 12036075: alternate ntp: fix website page jankiness when suggestions show and top bars are hidden (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed all comments Created 7 years, 11 months 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 a9ae54db735e788cbf0ca75f07b00e477a07b553..f53c9227f164bd26093c9f2a17c9fdcfa56afba7 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1950,8 +1950,10 @@ void BrowserView::Init() {
AddChildViewAt(tabstrip_, kTabstripIndex);
tabstrip_controller->InitFromModel(tabstrip_);
- infobar_container_ = new InfoBarContainerView(this,
- browser()->search_model());
+ infobar_container_ = new InfoBarContainerView(
+ this, browser()->search_model(),
+ browser_->instant_controller() ?
+ browser_->instant_controller()->instant()->model() : NULL);
AddChildViewAt(infobar_container_, kInfoBarIndex);
contents_container_ = new views::WebView(browser_->profile());

Powered by Google App Engine
This is Rietveld 408576698