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

Unified Diff: ash/test/test_shell_delegate.cc

Issue 2098023002: mash: Migrate remaining tray observers and notify functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. 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
Index: ash/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index 5f91587bf85c3f5501d89af189575a2ea652ca7a..1b85400fd1bc6b9bb397e5d5eef89f47923574a1 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -12,6 +12,7 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/window_state.h"
+#include "ash/common/wm_shell.h"
#include "ash/gpu_support_stub.h"
#include "ash/media_delegate.h"
#include "ash/new_window_delegate.h"
@@ -32,7 +33,7 @@
#include "ui/gfx/image/image.h"
#if defined(OS_CHROMEOS)
-#include "ash/system/tray/system_tray_notifier.h"
+#include "ash/common/system/tray/system_tray_notifier.h"
#endif
namespace ash {
@@ -230,10 +231,9 @@ gfx::Image TestShellDelegate::GetDeprecatedAcceleratorImage() const {
void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) {
#if defined(OS_CHROMEOS)
- Shell* shell = Shell::GetInstance();
- static_cast<MediaDelegateImpl*>(shell->media_delegate())
+ static_cast<MediaDelegateImpl*>(Shell::GetInstance()->media_delegate())
->set_media_capture_state(state);
- shell->system_tray_notifier()->NotifyMediaCaptureChanged();
+ WmShell::Get()->system_tray_notifier()->NotifyMediaCaptureChanged();
#endif
}

Powered by Google App Engine
This is Rietveld 408576698