Index: views/widget/native_widget_aura.cc |
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc |
index 19df7583113621680da769ad63970fce522f80e8..ac3d7812ccd463756b094122d97fb381ffc57b9f 100644 |
--- a/views/widget/native_widget_aura.cc |
+++ b/views/widget/native_widget_aura.cc |
@@ -534,13 +534,13 @@ bool NativeWidgetAura::ShouldActivate(aura::Event* event) { |
void NativeWidgetAura::OnActivated() { |
delegate_->OnNativeWidgetActivationChanged(true); |
- if (IsVisible()) |
+ if (IsVisible() && GetWidget()->non_client_view()) |
GetWidget()->non_client_view()->SchedulePaint(); |
} |
void NativeWidgetAura::OnLostActive() { |
delegate_->OnNativeWidgetActivationChanged(false); |
- if (IsVisible()) |
+ if (IsVisible() && GetWidget()->non_client_view()) |
GetWidget()->non_client_view()->SchedulePaint(); |
} |