Index: views/widget/native_widget_aura.cc |
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc |
index 4ff026efd56b3cf2cdc171c849595264aa28fecd..d3cd17922765d7b3b0e9a6dc61666ec15570212c 100644 |
--- a/views/widget/native_widget_aura.cc |
+++ b/views/widget/native_widget_aura.cc |
@@ -325,7 +325,9 @@ gfx::Rect NativeWidgetAura::GetClientAreaScreenBounds() const { |
} |
gfx::Rect NativeWidgetAura::GetRestoredBounds() const { |
- return window_->restore_bounds(); |
+ gfx::Rect* restore_bounds = reinterpret_cast<gfx::Rect*>( |
+ window_->GetProperty(aura::kRestoreBoundsKey)); |
+ return restore_bounds ? *restore_bounds : window_->bounds(); |
} |
void NativeWidgetAura::SetBounds(const gfx::Rect& bounds) { |