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

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

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix single-letter typo :(. 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
« no previous file with comments | « ash/system/chromeos/tray_display.h ('k') | ash/system/date/tray_date.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/tray_display.cc
diff --git a/ash/system/chromeos/tray_display.cc b/ash/system/chromeos/tray_display.cc
index bf958d6063c2e0f6d2dab13cc7d1bb66b547ee00..ea0edf2c40b41b2b9553b86f9ede6b89830fb449 100644
--- a/ash/system/chromeos/tray_display.cc
+++ b/ash/system/chromeos/tray_display.cc
@@ -114,8 +114,9 @@ class DisplayView : public ash::internal::ActionableView {
DISALLOW_COPY_AND_ASSIGN(DisplayView);
};
-TrayDisplay::TrayDisplay()
- : default_(NULL) {
+TrayDisplay::TrayDisplay(SystemTray* system_tray)
+ : SystemTrayItem(system_tray),
+ default_(NULL) {
Shell::GetScreen()->AddObserver(this);
Shell::GetInstance()->output_configurator()->AddObserver(this);
}
« no previous file with comments | « ash/system/chromeos/tray_display.h ('k') | ash/system/date/tray_date.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698