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

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

Issue 1009533005: Update size of RWVH after bookmark bar is hidden Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: in BrowserView Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6113a0991cfec87de33aa9946c695ef9cab53c8b..ecd99514a3b4d4d2a40377f626b313cfab205f87 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -790,8 +790,13 @@ void BrowserView::BookmarkBarStateChanged(
bookmark_bar_view_->SetBookmarkBarState(new_state, change_type);
}
- if (MaybeShowBookmarkBar(GetActiveWebContents()))
+ if (MaybeShowBookmarkBar(GetActiveWebContents())) {
Layout();
+ content::RenderWidgetHostView* rwhv =
sky 2015/03/25 20:45:36 Won't Layout() end up in ContentsLayoutManager and
scottmg 2015/03/25 22:22:06 Yeah, it does. On the initial navigate, the delega
+ GetActiveWebContents()->GetRenderWidgetHostView();
+ if (rwhv)
+ rwhv->SetSize(contents_container_->size());
+ }
}
void BrowserView::UpdateDevTools() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698