Chromium Code Reviews| 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(); |