Index: ash/display/display_change_observer_x11.cc |
diff --git a/ash/display/display_change_observer_x11.cc b/ash/display/display_change_observer_x11.cc |
index ebf07f219a9a1960af5e52e28913f8901a640a14..90047a1716a9d646226c4f715a4514467662a8ae 100644 |
--- a/ash/display/display_change_observer_x11.cc |
+++ b/ash/display/display_change_observer_x11.cc |
@@ -226,9 +226,11 @@ void DisplayChangeObserverX11::OnDisplayModeChanged() { |
} |
void DisplayChangeObserverX11::OnAppTerminating() { |
+#if defined(USE_ASH) |
// Stop handling display configuration events once the shutdown |
// process starts. crbug.com/177014. |
Shell::GetInstance()->output_configurator()->Stop(); |
+#endif |
} |
} // namespace internal |