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

Unified Diff: ash/system/settings/tray_settings.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/settings/tray_settings.cc
diff --git a/ash/system/settings/tray_settings.cc b/ash/system/settings/tray_settings.cc
index ae1823d4e16b53ca96e607fac2c71dc76d0a2aa9..ed566d64b25b71b4cfbcc1f4047c59ec74829088 100644
--- a/ash/system/settings/tray_settings.cc
+++ b/ash/system/settings/tray_settings.cc
@@ -6,6 +6,7 @@
#include "ash/shell.h"
#include "ash/system/power/power_status_view.h"
+#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_delegate.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_views.h"
@@ -114,8 +115,9 @@ class SettingsDefaultView : public ash::internal::ActionableView {
} // namespace tray
-TraySettings::TraySettings()
- : default_view_(NULL) {
+TraySettings::TraySettings(SystemTray* system_tray)
+ : SystemTrayItem(system_tray),
+ default_view_(NULL) {
}
TraySettings::~TraySettings() {}

Powered by Google App Engine
This is Rietveld 408576698