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

Unified Diff: ash/test/tray_cast_test_api.cc

Issue 2058173002: mash: Move SystemTrayDelegate ownership to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review feedback 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/tray_cast_test_api.cc
diff --git a/ash/test/tray_cast_test_api.cc b/ash/test/tray_cast_test_api.cc
index dc96f5f1ac32d8d6ba11bdb780514fd865e0dd24..430be7d5a2af5e859ec6a0b4ca9b24fe969d6e10 100644
--- a/ash/test/tray_cast_test_api.cc
+++ b/ash/test/tray_cast_test_api.cc
@@ -6,7 +6,7 @@
#include "ash/cast_config_delegate.h"
#include "ash/common/system/tray/system_tray_delegate.h"
-#include "ash/shell.h"
+#include "ash/common/wm_shell.h"
#include "ash/system/tray/system_tray.h"
#include "ui/views/view.h"
@@ -51,9 +51,8 @@ void TrayCastTestAPI::OnCastingSessionStartedOrStopped(bool is_casting) {
void TrayCastTestAPI::ReleaseConfigCallbacks() {
tray_cast_->added_observer_ = false;
- if (ash::Shell::GetInstance() &&
- ash::Shell::GetInstance()->system_tray_delegate()) {
- ash::Shell::GetInstance()
+ if (WmShell::Get() && WmShell::Get()->system_tray_delegate()) {
+ WmShell::Get()
->system_tray_delegate()
->GetCastConfigDelegate()
->RemoveObserver(tray_cast_);

Powered by Google App Engine
This is Rietveld 408576698