| Index: ash/wm/power_button_controller.cc
|
| diff --git a/ash/wm/power_button_controller.cc b/ash/wm/power_button_controller.cc
|
| index 5d70803b134f82e10f7fd829e49349aaedc48a6b..65906ccbb2885aeeb3db5d6d50b14ab059552224 100644
|
| --- a/ash/wm/power_button_controller.cc
|
| +++ b/ash/wm/power_button_controller.cc
|
| @@ -146,11 +146,11 @@ void PowerButtonController::OnDisplayModeChanged(
|
| bool internal_display_off = false;
|
| bool external_display_on = false;
|
| for (size_t i = 0; i < display_states.size(); ++i) {
|
| - const ui::DisplayConfigurator::DisplayState& state = display_states[i];
|
| - if (state.display->type() == ui::DISPLAY_CONNECTION_TYPE_INTERNAL) {
|
| - if (!state.display->current_mode())
|
| + const ui::DisplaySnapshot& display = *display_states[i];
|
| + if (display.type() == ui::DISPLAY_CONNECTION_TYPE_INTERNAL) {
|
| + if (!display.current_mode())
|
| internal_display_off = true;
|
| - } else if (state.display->current_mode()) {
|
| + } else if (display.current_mode()) {
|
| external_display_on = true;
|
| }
|
| }
|
|
|