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

Unified Diff: ash/system/date/tray_date.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/date/tray_date.h
diff --git a/ash/system/date/tray_date.h b/ash/system/date/tray_date.h
index a10f2810454efdaa01c50dcbf6635f9d62458744..7947fe97780c653249b65d91831db85c1496cd61 100644
--- a/ash/system/date/tray_date.h
+++ b/ash/system/date/tray_date.h
@@ -13,6 +13,9 @@ class Label;
}
namespace ash {
+
+class SystemTray;
+
namespace internal {
namespace tray {
@@ -26,7 +29,7 @@ class TrayDate : public SystemTrayItem,
HORIZONTAL_CLOCK,
VERTICAL_CLOCK,
};
- TrayDate();
+ explicit TrayDate(SystemTray* system_tray);
virtual ~TrayDate();
private:

Powered by Google App Engine
This is Rietveld 408576698