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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc

Issue 2573673003: Detect and fix overlapping displays (Closed)
Patch Set: Fix compile on Windows Created 4 years 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: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index 67a4f611f09b091e6a9a31fc4fdd35c0faaae577..b1020c71fecca9889144d366fc1eef0e891f7e1d 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -358,8 +358,10 @@ void DisplayOptionsHandler::SendAllDisplayInfo() {
js_display->Set("availableColorProfiles", available_color_profiles);
if (display_manager->GetNumDisplays() > 1) {
+ // The settings UI must use the resolved display layout to show the
+ // actual applied layout.
const display::DisplayPlacement placement =
- display_manager->GetCurrentDisplayLayout().FindPlacementById(
+ display_manager->GetCurrentResolvedDisplayLayout().FindPlacementById(
display.id());
if (placement.display_id != display::kInvalidDisplayId) {
js_display->SetString(

Powered by Google App Engine
This is Rietveld 408576698