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 db256f162a739b1b83f3f5def0c305aadf2a9549..d3547438220913808c40d2e3b7d372cbf29ac64f 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc |
@@ -279,7 +279,7 @@ |
js_display->SetBoolean("isPrimary", display.id() == primary_id); |
js_display->SetBoolean("isInternal", display.IsInternal()); |
js_display->SetInteger("orientation", |
- static_cast<int>(display_info.GetActiveRotation())); |
+ static_cast<int>(display_info.rotation())); |
base::ListValue* js_resolutions = new base::ListValue(); |
for (const ash::DisplayMode& display_mode : display_info.display_modes()) { |
@@ -438,8 +438,7 @@ |
content::RecordAction( |
base::UserMetricsAction("Options_DisplaySetOrientation")); |
- ash::ScreenRotationAnimator(display_id) |
- .Rotate(new_rotation, gfx::Display::ROTATION_SOURCE_USER); |
+ ash::ScreenRotationAnimator(display_id).Rotate(new_rotation); |
} |
void DisplayOptionsHandler::HandleSetColorProfile(const base::ListValue* args) { |