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

Unified Diff: chrome/browser/chromeos/display/display_preferences.cc

Issue 1107733006: Unified Desktop: hook up ash to allow unified desktop mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: chrome/browser/chromeos/display/display_preferences.cc
diff --git a/chrome/browser/chromeos/display/display_preferences.cc b/chrome/browser/chromeos/display/display_preferences.cc
index 8eda5017d1b92f95df31e525984fb71d9c018d5d..18e054b09e90b4c8bbf74888b14e62d8170484f6 100644
--- a/chrome/browser/chromeos/display/display_preferences.cc
+++ b/chrome/browser/chromeos/display/display_preferences.cc
@@ -225,14 +225,16 @@ void StoreDisplayLayoutPref(const ash::DisplayIdPair& pair,
}
void StoreCurrentDisplayLayoutPrefs() {
+ ash::DisplayManager* display_manager = GetDisplayManager();
if (!UserCanSaveDisplayPreference() ||
- GetDisplayManager()->num_connected_displays() < 2) {
+ display_manager->num_connected_displays() < 2 ||
+ display_manager->IsInUnifiedMode()) {
return;
}
- ash::DisplayIdPair pair = GetDisplayManager()->GetCurrentDisplayIdPair();
+ ash::DisplayIdPair pair = display_manager->GetCurrentDisplayIdPair();
ash::DisplayLayout display_layout =
- GetDisplayManager()->layout_store()->GetRegisteredDisplayLayout(pair);
+ display_manager->layout_store()->GetRegisteredDisplayLayout(pair);
StoreDisplayLayoutPref(pair, display_layout);
}
« ash/host/ash_window_tree_host_virtual.cc ('K') | « ash/touch/touch_transformer_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698