| Index: ui/views/widget/widget.cc
|
| diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
|
| index ad974649cb34ecf2837c212de908365b99ca1e5b..7d237c8874972856d71966a6ee6710f99925c834 100644
|
| --- a/ui/views/widget/widget.cc
|
| +++ b/ui/views/widget/widget.cc
|
| @@ -357,8 +357,10 @@ void Widget::Init(const InitParams& in_params) {
|
| non_client_view_->set_client_view(widget_delegate_->CreateClientView(this));
|
| non_client_view_->SetOverlayView(widget_delegate_->CreateOverlayView());
|
| SetContentsView(non_client_view_);
|
| - // 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.
|
| + // Initialize the window's icon and title before setting the window's
|
| + // initial bounds; the frame view's preferred height may depend on the
|
| + // presence of an icon or a title.
|
| + UpdateWindowIcon();
|
| UpdateWindowTitle();
|
| non_client_view_->ResetWindowControls();
|
| SetInitialBounds(params.bounds);
|
|
|