Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
index e95e67e9dc9b998de626174a24b6613853952521..f06588a1a0b3a1781db07c6d7b225d9e4fa58d60 100644 |
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
@@ -991,10 +991,6 @@ bool DesktopNativeWidgetAura::ShouldActivate() const { |
void DesktopNativeWidgetAura::OnWindowActivated(aura::Window* gained_active, |
aura::Window* lost_active) { |
DCHECK(content_window_ == gained_active || content_window_ == lost_active); |
- if ((content_window_ == gained_active || content_window_ == lost_active) && |
- IsVisible() && GetWidget()->non_client_view()) { |
- GetWidget()->non_client_view()->SchedulePaint(); |
- } |
if (gained_active == content_window_ && restore_focus_on_activate_) { |
restore_focus_on_activate_ = false; |
GetWidget()->GetFocusManager()->RestoreFocusedView(); |