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

Unified Diff: ash/system/tray/system_tray.cc

Issue 23560013: Remove unused items in the ash tray for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix ifdefs again Created 7 years, 2 months 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 | « no previous file | ash/wm/panels/panel_window_resizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index c9a07be507ddcb35b9616f4e4072972181a2d751..903a4ea013730039d6e36692dbee39a3cb3fdc5f 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -156,47 +156,46 @@ void SystemTray::CreateItems(SystemTrayDelegate* delegate) {
// the additional separator.
for (int i = 0; i <= maximum_user_profiles; i++)
AddTrayItem(new internal::TrayUser(this, i));
-
#endif
+
+ tray_accessibility_ = new internal::TrayAccessibility(this);
+
#if defined(OS_CHROMEOS)
AddTrayItem(new internal::TrayEnterprise(this));
AddTrayItem(new internal::TrayLocallyManagedUser(this));
-#endif
AddTrayItem(new internal::TrayIME(this));
- tray_accessibility_ = new internal::TrayAccessibility(this);
AddTrayItem(tray_accessibility_);
-#if defined(OS_CHROMEOS)
AddTrayItem(new internal::TrayTracing(this));
AddTrayItem(
new internal::TrayPower(this, message_center::MessageCenter::Get()));
-#endif
-#if defined(OS_CHROMEOS)
AddTrayItem(new internal::TrayNetwork(this));
AddTrayItem(new internal::TrayVPN(this));
AddTrayItem(new internal::TraySms(this));
-#endif
-#if !defined(OS_WIN)
AddTrayItem(new internal::TrayBluetooth(this));
-#endif
AddTrayItem(new internal::TrayDrive(this));
-#if defined(OS_CHROMEOS)
AddTrayItem(new internal::TrayDisplay(this));
AddTrayItem(new internal::ScreenCaptureTrayItem(this));
AddTrayItem(new internal::ScreenShareTrayItem(this));
AddTrayItem(new internal::TrayAudio(this));
AddTrayItem(new internal::TrayBrightness(this));
-#endif
-#if !defined(OS_WIN)
AddTrayItem(new internal::TrayCapsLock(this));
-#endif
-#if defined(OS_CHROMEOS)
AddTrayItem(new internal::TraySettings(this));
-#endif
AddTrayItem(new internal::TrayUpdate(this));
AddTrayItem(new internal::TrayDate(this));
+#elif defined(OS_WIN)
+ AddTrayItem(tray_accessibility_);
+ AddTrayItem(new internal::TrayDate(this));
+#elif defined(OS_LINUX)
+ AddTrayItem(new internal::TrayIME(this));
+ AddTrayItem(tray_accessibility_);
+ AddTrayItem(new internal::TrayBluetooth(this));
+ AddTrayItem(new internal::TrayDrive(this));
+ AddTrayItem(new internal::TrayCapsLock(this));
+ AddTrayItem(new internal::TrayUpdate(this));
+ AddTrayItem(new internal::TrayDate(this));
+#endif
#if defined(OS_LINUX)
- // Add memory monitor if enabled.
CommandLine* cmd = CommandLine::ForCurrentProcess();
if (cmd->HasSwitch(ash::switches::kAshEnableMemoryMonitor))
AddTrayItem(new internal::TrayMonitor(this));
« no previous file with comments | « no previous file | ash/wm/panels/panel_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698