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

Unified Diff: ash/shell.cc

Issue 139053003: Chrome OS: avoid suspending on lid close when casting is active. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass security origin to MediaObserver. Created 6 years, 11 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/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 6845d4a69e16360fd4a5a204c9b256ced875aa10..2509fe7b94dde77c26d55b13b6bcbea7f7535787 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -391,6 +391,13 @@ void Shell::OnLockStateChanged(bool locked) {
#endif
}
+void Shell::OnCastingStateChanged(bool started) {
+#if defined(OS_CHROMEOS) && defined(USE_X11)
+ if (output_configurator_)
+ output_configurator_->OnCastingStateChanged(started);
+#endif
+}
+
void Shell::CreateShelf() {
RootWindowControllerList controllers = GetAllRootWindowControllers();
for (RootWindowControllerList::iterator iter = controllers.begin();

Powered by Google App Engine
This is Rietveld 408576698