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

Unified Diff: ash/test/test_shell_delegate.h

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.h
diff --git a/ash/test/test_shell_delegate.h b/ash/test/test_shell_delegate.h
index b56ee14edefc16238633bf538c0c9c0248ee27ed..27e4d75ebd383d959db315e4511b47ae630cbb09 100644
--- a/ash/test/test_shell_delegate.h
+++ b/ash/test/test_shell_delegate.h
@@ -65,6 +65,7 @@ class TestShellDelegate : public ShellDelegate {
void SetTouchscreenEnabledInPrefs(bool enabled,
bool use_local_state) override;
void UpdateTouchscreenStatusFromPrefs() override;
+ void SuspendMediaSessions() override;
int num_exit_requests() const { return num_exit_requests_; }
@@ -72,13 +73,16 @@ class TestShellDelegate : public ShellDelegate {
force_maximize_on_first_run_ = maximize;
}
+ bool media_sessions_suspended() const { return media_sessions_suspended_; }
+
private:
- int num_exit_requests_;
- bool multi_profiles_enabled_;
- bool force_maximize_on_first_run_;
- bool touchscreen_enabled_in_local_pref_;
+ int num_exit_requests_ = 0;
+ bool multi_profiles_enabled_ = false;
+ bool force_maximize_on_first_run_ = false;
+ bool touchscreen_enabled_in_local_pref_ = true;
+ bool media_sessions_suspended_ = false;
std::unique_ptr<ShelfInitializer> shelf_initializer_;
- PrefService* active_user_pref_service_; // Not owned.
+ PrefService* active_user_pref_service_ = nullptr; // Not owned.
DISALLOW_COPY_AND_ASSIGN(TestShellDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698