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

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

Issue 2152303002: Allow idle/suspend with 3+ monitors attached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-power-state
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator.cc
diff --git a/ui/display/chromeos/display_configurator.cc b/ui/display/chromeos/display_configurator.cc
index bd125439f4959a106d639c07e3ee39c19995c265..4da22efa29a18a196aa8fa5ce83762b0b0b282d6 100644
--- a/ui/display/chromeos/display_configurator.cc
+++ b/ui/display/chromeos/display_configurator.cc
@@ -296,10 +296,8 @@ bool DisplayConfigurator::DisplayLayoutManagerImpl::GetDisplayLayout(
}
case MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED:
case MULTIPLE_DISPLAY_STATE_MULTI_EXTENDED: {
- if ((new_display_state == MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED &&
- states.size() != 2 && num_on_displays != 2) ||
- (new_display_state == MULTIPLE_DISPLAY_STATE_MULTI_EXTENDED &&
- num_on_displays <= 2)) {
+ if (new_display_state == MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED &&
+ states.size() != 2 && num_on_displays != 2) {
LOG(WARNING) << "Ignoring request to enter extended mode with "
<< states.size() << " connected display(s) and "
<< num_on_displays << " turned on";
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698