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

Unified Diff: remoting/host/disconnect_window_chromeos.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
« ash/shell.h ('K') | « components/arc/audio/arc_audio_bridge.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window_chromeos.cc
diff --git a/remoting/host/disconnect_window_chromeos.cc b/remoting/host/disconnect_window_chromeos.cc
index 1bb7153d453510f246d996efc307c75110878dd7..14e0e298dd85539f76e01f652f7223be4cffad88 100644
--- a/remoting/host/disconnect_window_chromeos.cc
+++ b/remoting/host/disconnect_window_chromeos.cc
@@ -4,8 +4,9 @@
#include <string>
-#include "ash/shell.h"
-#include "ash/system/tray/system_tray_notifier.h"
+#include "ash/common/system/tray/system_tray_notifier.h"
+#include "ash/common/wm_shell.h"
+#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "remoting/host/client_session_control.h"
@@ -28,11 +29,10 @@ class DisconnectWindowAura : public HostWindow {
DISALLOW_COPY_AND_ASSIGN(DisconnectWindowAura);
};
-DisconnectWindowAura::DisconnectWindowAura() {
-}
+DisconnectWindowAura::DisconnectWindowAura() {}
DisconnectWindowAura::~DisconnectWindowAura() {
- ash::Shell::GetInstance()->system_tray_notifier()->NotifyScreenShareStop();
+ ash::WmShell::Get()->system_tray_notifier()->NotifyScreenShareStop();
}
void DisconnectWindowAura::Start(
@@ -40,7 +40,7 @@ void DisconnectWindowAura::Start(
// TODO(kelvinp): Clean up the NotifyScreenShareStart interface when we
// completely retire Hangout Remote Desktop v1.
base::string16 helper_name;
- ash::Shell::GetInstance()->system_tray_notifier()->NotifyScreenShareStart(
+ ash::WmShell::Get()->system_tray_notifier()->NotifyScreenShareStart(
base::Bind(&ClientSessionControl::DisconnectSession,
client_session_control, protocol::OK),
helper_name);
« ash/shell.h ('K') | « components/arc/audio/arc_audio_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698