Commit 694d97c0 authored by Scott Violet's avatar Scott Violet Committed by Commit Bot

chromeos: removes some dead code

MASH_DEPRECATED is never set anymore.

BUG=692193
TEST=none

Change-Id: I49a99e9e3c6bbc7f3c77238e450e18c4ffd6b992
Reviewed-on: https://chromium-review.googlesource.com/1176102Reviewed-by: default avatarDan Erat <derat@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583307}
parent af95f4cb
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <map> #include <map>
#include <utility> #include <utility>
#include "ash/public/cpp/config.h"
#include "ash/root_window_controller.h" #include "ash/root_window_controller.h"
#include "ash/session/session_controller.h" #include "ash/session/session_controller.h"
#include "ash/shell.h" #include "ash/shell.h"
...@@ -283,10 +282,7 @@ void PowerEventObserver::SuspendImminent( ...@@ -283,10 +282,7 @@ void PowerEventObserver::SuspendImminent(
void PowerEventObserver::SuspendDone(const base::TimeDelta& sleep_duration) { void PowerEventObserver::SuspendDone(const base::TimeDelta& sleep_duration) {
suspend_in_progress_ = false; suspend_in_progress_ = false;
// TODO(derat): After mus exposes a method for resuming displays, call it Shell::Get()->display_configurator()->ResumeDisplays();
// here: http://crbug.com/692193
if (Shell::GetAshConfig() != Config::MASH_DEPRECATED)
Shell::Get()->display_configurator()->ResumeDisplays();
Shell::Get()->system_tray_model()->clock()->NotifyRefreshClock(); Shell::Get()->system_tray_model()->clock()->NotifyRefreshClock();
// If the suspend request was being blocked while waiting for the lock // If the suspend request was being blocked while waiting for the lock
...@@ -348,15 +344,9 @@ void PowerEventObserver::StopCompositingAndSuspendDisplays() { ...@@ -348,15 +344,9 @@ void PowerEventObserver::StopCompositingAndSuspendDisplays() {
ui::UserActivityDetector::Get()->OnDisplayPowerChanging(); ui::UserActivityDetector::Get()->OnDisplayPowerChanging();
// TODO(derat): After mus exposes a method for suspending displays, call it Shell::Get()->display_configurator()->SuspendDisplays(
// here: http://crbug.com/692193 base::Bind(&OnSuspendDisplaysCompleted,
if (Shell::GetAshConfig() != Config::MASH_DEPRECATED) { base::Passed(&displays_suspended_callback_)));
Shell::Get()->display_configurator()->SuspendDisplays(
base::Bind(&OnSuspendDisplaysCompleted,
base::Passed(&displays_suspended_callback_)));
} else {
std::move(displays_suspended_callback_).Run();
}
} }
void PowerEventObserver::EndPendingWallpaperAnimations() { void PowerEventObserver::EndPendingWallpaperAnimations() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment