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

Unified Diff: ash/system/user/tray_user.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/user/tray_user.h
diff --git a/ash/system/user/tray_user.h b/ash/system/user/tray_user.h
index 52d69d040f11a2182aca9d0da2000c63043d11f8..2926e3ebadbd3ed2c4afaacdbba361da387ffb1d 100644
--- a/ash/system/user/tray_user.h
+++ b/ash/system/user/tray_user.h
@@ -14,6 +14,9 @@ class Label;
}
namespace ash {
+
+class SystemTray;
+
namespace internal {
namespace tray {
@@ -24,7 +27,7 @@ class RoundedImageView;
class TrayUser : public SystemTrayItem,
public UserObserver {
public:
- TrayUser();
+ explicit TrayUser(SystemTray* system_tray);
virtual ~TrayUser();
private:

Powered by Google App Engine
This is Rietveld 408576698