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

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: rebase 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
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index 39dd23ef9481c9dab09e49d1e4d52a996df84de6..3f558922a0ae0f72b4687308f4a161db08d1ce97 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -52,14 +52,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;
@@ -159,5 +154,9 @@ void TestShellDelegate::SetTouchscreenEnabledInPrefs(bool enabled,
void TestShellDelegate::UpdateTouchscreenStatusFromPrefs() {}
+void TestShellDelegate::SuspendMediaSessions() {
+ media_sessions_suspended_ = true;
+}
+
} // namespace test
} // namespace ash
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698