| 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_);
|
|
|