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

Unified Diff: ash/test/test_shell_delegate.cc

Issue 2821303004: cros: Suspend media sessions with display off trigger by tablet power button (Closed)
Patch Set: feedback & remove resuming Created 3 years, 7 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/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index 244c7faf83a810a790a102f98af0874fe9543c9b..8263335eea11141c6e90ba0862b249e459465d85 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -54,14 +54,9 @@ class ShelfInitializer : public ShellObserver {
DISALLOW_COPY_AND_ASSIGN(ShelfInitializer);
};
-TestShellDelegate::TestShellDelegate()
- : num_exit_requests_(0),
- multi_profiles_enabled_(false),
- force_maximize_on_first_run_(false),
- touchscreen_enabled_in_local_pref_(true),
- active_user_pref_service_(nullptr) {}
+TestShellDelegate::TestShellDelegate() = default;
-TestShellDelegate::~TestShellDelegate() {}
+TestShellDelegate::~TestShellDelegate() = default;
::service_manager::Connector* TestShellDelegate::GetShellConnector() const {
return nullptr;
@@ -165,5 +160,9 @@ void TestShellDelegate::SetTouchscreenEnabledInPrefs(bool enabled,
void TestShellDelegate::UpdateTouchscreenStatusFromPrefs() {}
+void TestShellDelegate::SuspendMediaSessions() {
+ media_sessions_suspended_ = true;
+}
+
} // namespace test
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698