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

Unified Diff: ash/display/display_manager.cc

Issue 1177863002: ash: Restore user selected rotation on startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 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 | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index 59ac90e63c26f65d2f4b5c79be1e17d562d8949b..c8a2b9dfd309b22ee943e5745b6a2aaa593710a9 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -468,6 +468,8 @@ void DisplayManager::RegisterDisplayProperty(
display_info_[display_id] = DisplayInfo(display_id, std::string(), false);
display_info_[display_id].SetRotation(rotation,
+ gfx::Display::ROTATION_SOURCE_USER);
+ display_info_[display_id].SetRotation(rotation,
gfx::Display::ROTATION_SOURCE_ACTIVE);
display_info_[display_id].SetColorProfile(color_profile);
// Just in case the preference file was corrupted.
« no previous file with comments | « no previous file | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698