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