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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 2113023002: mash: Migrate MediaDelegate ownership and access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment. Created 4 years, 6 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 | « no previous file | ash/common/media_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 306618727487e2947edd05b4685aae9c3a10a4be..ab4785753f8b3e7cbe1ea5d73acfca57ec8000e9 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -15,6 +15,7 @@
#include "ash/common/accessibility_types.h"
#include "ash/common/ash_switches.h"
#include "ash/common/focus_cycler.h"
+#include "ash/common/media_delegate.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shelf/shelf_model.h"
#include "ash/common/shell_window_ids.h"
@@ -34,7 +35,6 @@
#include "ash/ime_control_delegate.h"
#include "ash/magnifier/magnification_controller.h"
#include "ash/magnifier/partial_magnification_controller.h"
-#include "ash/media_delegate.h"
#include "ash/multi_profile_uma.h"
#include "ash/new_window_delegate.h"
#include "ash/root_window_controller.h"
@@ -265,15 +265,15 @@ void HandleMagnifyScreen(int delta_index) {
}
void HandleMediaNextTrack() {
- Shell::GetInstance()->media_delegate()->HandleMediaNextTrack();
+ WmShell::Get()->media_delegate()->HandleMediaNextTrack();
}
void HandleMediaPlayPause() {
- Shell::GetInstance()->media_delegate()->HandleMediaPlayPause();
+ WmShell::Get()->media_delegate()->HandleMediaPlayPause();
}
void HandleMediaPrevTrack() {
- Shell::GetInstance()->media_delegate()->HandleMediaPrevTrack();
+ WmShell::Get()->media_delegate()->HandleMediaPrevTrack();
}
bool CanHandleNewIncognitoWindow() {
« no previous file with comments | « no previous file | ash/common/media_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698