Index: ash/display/display_change_observer_chromeos.cc |
diff --git a/ash/display/display_change_observer_chromeos.cc b/ash/display/display_change_observer_chromeos.cc |
index de4819495d8bea21bede92f59e485684b5cdb2c2..23d195f736295a64822849f5a38be78791750e2b 100644 |
--- a/ash/display/display_change_observer_chromeos.cc |
+++ b/ash/display/display_change_observer_chromeos.cc |
@@ -255,6 +255,16 @@ void DisplayChangeObserver::OnDisplayModeChanged( |
user_activity_detector->OnDisplayPowerChanging(); |
} |
+void DisplayChangeObserver::OnDisplayModeChangeFailed( |
+ const ui::DisplayConfigurator::DisplayStateList& displays, |
+ ui::MultipleDisplayState failed_new_state) { |
+ // If display configuration failed during startup, simply update the display |
+ // manager with detected displays. If no display is detected, it will |
+ // create a pseudo display. |
+ if (Shell::GetInstance()->display_manager()->GetNumDisplays() == 0) |
+ OnDisplayModeChanged(displays); |
+} |
+ |
void DisplayChangeObserver::OnAppTerminating() { |
#if defined(USE_ASH) |
// Stop handling display configuration events once the shutdown |