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

Unified Diff: ash/system/cast/tray_cast.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/system/cast/tray_cast.cc
diff --git a/ash/system/cast/tray_cast.cc b/ash/system/cast/tray_cast.cc
index fe95125dbaf233b9f613913b5b03639a0c940dd3..3339da87c7ce38228819376cdb2251396176bca2 100644
--- a/ash/system/cast/tray_cast.cc
+++ b/ash/system/cast/tray_cast.cc
@@ -45,9 +45,7 @@ const int kStopButtonRightPadding = 18;
// Returns the active CastConfigDelegate instance.
ash::CastConfigDelegate* GetCastConfigDelegate() {
- return ash::Shell::GetInstance()
- ->system_tray_delegate()
- ->GetCastConfigDelegate();
+ return WmShell::Get()->system_tray_delegate()->GetCastConfigDelegate();
}
// Helper method to elide the given string to the maximum length. If a string is

Powered by Google App Engine
This is Rietveld 408576698