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

Unified Diff: ash/system/chromeos/tray_display.h

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified CL to provide TrayItems and Tray*Views with parent pointers instead. Created 8 years, 1 month 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/chromeos/tray_display.h
diff --git a/ash/system/chromeos/tray_display.h b/ash/system/chromeos/tray_display.h
index 0685a9de29dc3c50e2b5e44f3c86256a80ad8532..4fc85516dcfcd363c9b417180efade3770b14c33 100644
--- a/ash/system/chromeos/tray_display.h
+++ b/ash/system/chromeos/tray_display.h
@@ -17,6 +17,8 @@ class View;
namespace ash {
+class SystemTray;
+
namespace internal {
class DisplayView;
@@ -24,7 +26,7 @@ class TrayDisplay : public SystemTrayItem,
public chromeos::OutputConfigurator::Observer,
public gfx::DisplayObserver {
public:
- TrayDisplay();
+ explicit TrayDisplay(SystemTray* system_tray);
virtual ~TrayDisplay();
private:

Powered by Google App Engine
This is Rietveld 408576698