Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: ash/system/chromeos/power/power_event_observer.cc

Issue 2427843002: Delay display configuration after waking up from suspend with multi displays (Closed)
Patch Set: derat's comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/power/power_event_observer.cc
diff --git a/ash/system/chromeos/power/power_event_observer.cc b/ash/system/chromeos/power/power_event_observer.cc
index 663a8a613876b67e12d9c7bb4aae4bf5a22c3336..b42e42d263e89a45fb0002566159b1446d44fa4f 100644
--- a/ash/system/chromeos/power/power_event_observer.cc
+++ b/ash/system/chromeos/power/power_event_observer.cc
@@ -41,6 +41,8 @@ void OnSuspendDisplaysCompleted(const base::Closure& suspend_callback,
suspend_callback.Run();
}
+void DoNothing(bool) {}
+
} // namespace
PowerEventObserver::PowerEventObserver()
@@ -125,7 +127,8 @@ void PowerEventObserver::SuspendImminent() {
}
void PowerEventObserver::SuspendDone(const base::TimeDelta& sleep_duration) {
- Shell::GetInstance()->display_configurator()->ResumeDisplays();
+ Shell::GetInstance()->display_configurator()->ResumeDisplays(
+ base::Bind(&DoNothing));
WmShell::Get()->system_tray_notifier()->NotifyRefreshClock();
// If the suspend request was being blocked while waiting for the lock
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator.h » ('j') | ui/display/chromeos/display_configurator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698