| 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 dca2e5a29d91d36cf54eda3702ee08885ad71966..8eda5017d1b92f95df31e525984fb71d9c018d5d 100644
|
| --- a/chrome/browser/chromeos/display/display_preferences.cc
|
| +++ b/chrome/browser/chromeos/display/display_preferences.cc
|
| @@ -251,7 +251,9 @@ void StoreCurrentDisplayProperties() {
|
|
|
| scoped_ptr<base::DictionaryValue> property_value(
|
| new base::DictionaryValue());
|
| - property_value->SetInteger("rotation", static_cast<int>(info.rotation()));
|
| + property_value->SetInteger(
|
| + "rotation",
|
| + static_cast<int>(info.GetRotation(gfx::Display::ROTATION_SOURCE_USER)));
|
| property_value->SetInteger(
|
| "ui-scale",
|
| static_cast<int>(info.configured_ui_scale() * 1000));
|
| @@ -358,7 +360,7 @@ void StoreDisplayRotationPrefs(bool rotation_lock) {
|
| gfx::Display::Rotation rotation =
|
| GetDisplayManager()
|
| ->GetDisplayInfo(gfx::Display::InternalDisplayId())
|
| - .rotation();
|
| + .GetRotation(gfx::Display::ROTATION_SOURCE_ACCELEROMETER);
|
| pref_data->SetInteger("orientation", static_cast<int>(rotation));
|
| }
|
|
|
|
|