| Index: ui/views/widget/widget.cc
|
| diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
|
| index 9a9ad4b87f8e110ed29500fdef5beef72c77a29c..a22691dfff740bc3499ad6b0f6f4e0cae1d664f8 100644
|
| --- a/ui/views/widget/widget.cc
|
| +++ b/ui/views/widget/widget.cc
|
| @@ -1354,7 +1354,8 @@ void Widget::SetInitialBounds(const gfx::Rect& bounds) {
|
| // If we're going to maximize, wait until Show is invoked to set the
|
| // bounds. That way we avoid a noticeable resize.
|
| initial_restored_bounds_ = saved_bounds;
|
| - } else {
|
| + } else if (!saved_bounds.IsEmpty()) {
|
| + // If the saved bounds are valid, use them.
|
| SetBounds(saved_bounds);
|
| }
|
| } else {
|
|
|