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

Unified Diff: ash/test/test_shell_delegate.cc

Issue 2563643003: mash: Change the MediaDelegate to a Media{Controller,Client}. (Closed)
Patch Set: Comment fixes Created 4 years 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/chrome_content_browser_manifest_overlay.json » ('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 d91c64490bf0402b2b7b33d74b129c50afecda5e..3402d6ad1044312372910a7a7ac0d385ce0cb119 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -10,7 +10,6 @@
#include "ash/app_list/app_list_presenter_delegate_factory.h"
#include "ash/common/default_accessibility_delegate.h"
#include "ash/common/gpu_support_stub.h"
-#include "ash/common/media_delegate.h"
#include "ash/common/palette_delegate.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/test/test_session_state_delegate.h"
@@ -38,27 +37,6 @@ namespace ash {
namespace test {
namespace {
-class MediaDelegateImpl : public MediaDelegate {
- public:
- MediaDelegateImpl() : state_(MEDIA_CAPTURE_NONE) {}
- ~MediaDelegateImpl() override {}
-
- void set_media_capture_state(MediaCaptureState state) { state_ = state; }
-
- private:
- // MediaDelegate:
- void HandleMediaNextTrack() override {}
- void HandleMediaPlayPause() override {}
- void HandleMediaPrevTrack() override {}
- MediaCaptureState GetMediaCaptureState(UserIndex index) override {
- return state_;
- }
-
- MediaCaptureState state_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaDelegateImpl);
-};
-
class AppListViewDelegateFactoryImpl
: public app_list::AppListViewDelegateFactory {
public:
@@ -159,10 +137,6 @@ AccessibilityDelegate* TestShellDelegate::CreateAccessibilityDelegate() {
return new DefaultAccessibilityDelegate();
}
-MediaDelegate* TestShellDelegate::CreateMediaDelegate() {
- return new MediaDelegateImpl;
-}
-
std::unique_ptr<PaletteDelegate> TestShellDelegate::CreatePaletteDelegate() {
return nullptr;
}
@@ -198,13 +172,5 @@ void TestShellDelegate::SetTouchscreenEnabledInPrefs(bool enabled,
void TestShellDelegate::UpdateTouchscreenStatusFromPrefs() {}
-void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) {
-#if defined(OS_CHROMEOS)
- static_cast<MediaDelegateImpl*>(WmShell::Get()->media_delegate())
- ->set_media_capture_state(state);
- WmShell::Get()->system_tray_notifier()->NotifyMediaCaptureChanged();
-#endif
-}
-
} // namespace test
} // namespace ash
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | chrome/browser/chrome_content_browser_manifest_overlay.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698