Chromium Code Reviews| Index: views/widget/native_widget_aura.cc |
| diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc |
| index ee23f426f26c5b6a1d6c38078c1d2759ddc09c7a..c96b644d528df6b7fae5051dca6288224e548f9e 100644 |
| --- a/views/widget/native_widget_aura.cc |
| +++ b/views/widget/native_widget_aura.cc |
| @@ -374,7 +374,9 @@ void NativeWidgetAura::Show() { |
| } |
| void NativeWidgetAura::Hide() { |
| - window_->Hide(); |
| + // |window_| may already be deleted by parent window. |
| + if (window_) |
|
Ben Goodger (Google)
2011/11/16 15:48:25
This seems kind of random. What other functions in
oshima
2011/11/16 16:51:47
On second thought, I think I should move this to C
|
| + window_->Hide(); |
| } |
| void NativeWidgetAura::ShowMaximizedWithBounds( |