Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Unified Diff: ui/display/chromeos/update_display_configuration_task.cc

Issue 1133743005: Perform a display configuration in software mirror on hotplug event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/display/chromeos/update_display_configuration_task.cc
diff --git a/ui/display/chromeos/update_display_configuration_task.cc b/ui/display/chromeos/update_display_configuration_task.cc
index 7b254fc1e7c4f11dd636dd7b832dcdc4a954584d..33ac1feb526e0cd363abe3aee73c9cff1eef27d7 100644
--- a/ui/display/chromeos/update_display_configuration_task.cc
+++ b/ui/display/chromeos/update_display_configuration_task.cc
@@ -111,7 +111,8 @@ void UpdateDisplayConfigurationTask::OnStateEntered(
if (!success && new_display_state_ == MULTIPLE_DISPLAY_STATE_DUAL_MIRROR) {
if (layout_manager_->GetDisplayState() !=
MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED ||
- layout_manager_->GetPowerState() != new_power_state_) {
+ layout_manager_->GetPowerState() != new_power_state_ ||
+ force_configure_) {
new_display_state_ = MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED;
EnterState(base::Bind(
&UpdateDisplayConfigurationTask::OnEnableSoftwareMirroring,

Powered by Google App Engine
This is Rietveld 408576698