| Index: ash/system/chromeos/tray_display.cc
|
| diff --git a/ash/system/chromeos/tray_display.cc b/ash/system/chromeos/tray_display.cc
|
| index c964645800f32cbd5a0d1c721d4f7afc17f097b3..10f9ede1839ad6a1aef7153cb9a152114dee3e99 100644
|
| --- a/ash/system/chromeos/tray_display.cc
|
| +++ b/ash/system/chromeos/tray_display.cc
|
| @@ -207,7 +207,7 @@
|
| base::string16 name = GetDisplayName(external_id);
|
| const DisplayInfo& display_info =
|
| display_manager->GetDisplayInfo(external_id);
|
| - if (display_info.GetActiveRotation() != gfx::Display::ROTATE_0 ||
|
| + if (display_info.rotation() != gfx::Display::ROTATE_0 ||
|
| display_info.configured_ui_scale() != 1.0f ||
|
| !display_info.overscan_insets_in_dip().empty()) {
|
| name = l10n_util::GetStringFUTF16(
|
| @@ -263,10 +263,10 @@
|
| bool ShouldShowFirstDisplayInfo() const {
|
| const DisplayInfo& display_info = GetDisplayManager()->GetDisplayInfo(
|
| GetDisplayManager()->first_display_id());
|
| - return display_info.GetActiveRotation() != gfx::Display::ROTATE_0 ||
|
| - display_info.configured_ui_scale() != 1.0f ||
|
| - !display_info.overscan_insets_in_dip().empty() ||
|
| - display_info.has_overscan();
|
| + return display_info.rotation() != gfx::Display::ROTATE_0 ||
|
| + display_info.configured_ui_scale() != 1.0f ||
|
| + !display_info.overscan_insets_in_dip().empty() ||
|
| + display_info.has_overscan();
|
| }
|
|
|
| // Overridden from ActionableView.
|
| @@ -340,10 +340,9 @@
|
| GetDisplaySize(iter->first));
|
| return true;
|
| }
|
| - if (iter->second.GetActiveRotation() !=
|
| - old_iter->second.GetActiveRotation()) {
|
| + if (iter->second.rotation() != old_iter->second.rotation()) {
|
| int rotation_text_id = 0;
|
| - switch (iter->second.GetActiveRotation()) {
|
| + switch (iter->second.rotation()) {
|
| case gfx::Display::ROTATE_0:
|
| rotation_text_id = IDS_ASH_STATUS_TRAY_DISPLAY_STANDARD_ORIENTATION;
|
| break;
|
|
|