| Index: chrome/browser/chromeos/power/output_observer.cc
|
| diff --git a/chrome/browser/chromeos/power/output_observer.cc b/chrome/browser/chromeos/power/output_observer.cc
|
| index 24e573e1cbd088d5a69da291b1889b3699025802..5889f6c8b32e692d429f774b815682a2153e621f 100644
|
| --- a/chrome/browser/chromeos/power/output_observer.cc
|
| +++ b/chrome/browser/chromeos/power/output_observer.cc
|
| @@ -28,8 +28,15 @@ void OutputObserver::ScreenPowerSet(bool power_on, bool all_displays) {
|
| OnAllOutputsTurnedOff();
|
| }
|
|
|
| - ash::Shell::GetInstance()->output_configurator()->
|
| - ScreenPowerSet(power_on, all_displays);
|
| + DisplayPowerState state = DISPLAY_POWER_ALL_ON;
|
| + if (power_on)
|
| + state = DISPLAY_POWER_ALL_ON;
|
| + else if (!power_on && all_displays)
|
| + state = DISPLAY_POWER_ALL_OFF;
|
| + else if (!power_on && !all_displays)
|
| + state = DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON;
|
| +
|
| + ash::Shell::GetInstance()->output_configurator()->SetDisplayPowerState(state);
|
| }
|
|
|
| } // namespace chromeos
|
|
|