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

Unified Diff: ui/views/widget/widget.cc

Issue 133073010: [Views] Cause the window controls to be reset independent of title update in the non-client view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« 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: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 9b47ce8f276b7c14868ed51dcfd6d8ad387ab57c..2f407ecd6546510e3be4b9d5df4efc7fdf73d6a2 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -381,6 +381,7 @@ void Widget::Init(const InitParams& in_params) {
// Initialize the window's title before setting the window's initial bounds;
// the frame view's preferred height may depend on the presence of a title.
UpdateWindowTitle();
+ non_client_view_->ResetWindowControls();
sky 2014/01/18 22:16:33 This is easy to break. How about a test?
Greg Billock 2014/01/21 19:54:32 Done. (and verified that without this line, the te
SetInitialBounds(params.bounds);
if (params.show_state == ui::SHOW_STATE_MAXIMIZED)
Maximize();
« 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