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

Unified Diff: ash/system/locale/tray_locale.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: 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/locale/tray_locale.cc
diff --git a/ash/system/locale/tray_locale.cc b/ash/system/locale/tray_locale.cc
index 4f7fefab15b199f22b0f0f0945535dbd4c55d5ed..a065c8f7c94284e37e673270d2886b50ee73eba1 100644
--- a/ash/system/locale/tray_locale.cc
+++ b/ash/system/locale/tray_locale.cc
@@ -4,6 +4,7 @@
#include "ash/system/locale/tray_locale.h"
+#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_notification_view.h"
#include "ash/system/tray/tray_views.h"
@@ -109,8 +110,9 @@ class LocaleNotificationView : public TrayNotificationView {
} // namespace tray
-TrayLocale::TrayLocale()
- : notification_(NULL),
+TrayLocale::TrayLocale(SystemTray* system_tray)
+ : SystemTrayItem(system_tray),
+ notification_(NULL),
delegate_(NULL) {
}

Powered by Google App Engine
This is Rietveld 408576698