Index: ash/system/tray/system_tray.cc |
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc |
index baca0ad2c61e803374d722b02be2f85c958f4867..4f2f7267f9a964798b5d5f2b8939cca42775b458 100644 |
--- a/ash/system/tray/system_tray.cc |
+++ b/ash/system/tray/system_tray.cc |
@@ -182,7 +182,8 @@ void SystemTray::CreateItems(SystemTrayDelegate* delegate) { |
AddTrayItem(new TrayVPN(this)); |
AddTrayItem(new TraySms(this)); |
AddTrayItem(new TrayBluetooth(this)); |
- AddTrayItem(new TrayCast(this)); |
+ tray_cast_ = new TrayCast(this); |
+ AddTrayItem(tray_cast_); |
AddTrayItem(new TrayDisplay(this)); |
screen_capture_tray_item_ = new ScreenCaptureTrayItem(this); |
AddTrayItem(screen_capture_tray_item_); |
@@ -205,7 +206,8 @@ void SystemTray::CreateItems(SystemTrayDelegate* delegate) { |
#elif defined(OS_LINUX) |
AddTrayItem(tray_accessibility_); |
AddTrayItem(new TrayBluetooth(this)); |
- AddTrayItem(new TrayCast(this)); |
+ tray_cast_ = new TrayCast(this); |
+ AddTrayItem(tray_cast_); |
achuithb
2015/07/14 18:06:39
Tell me again why we have this on linux?
jdufault
2015/07/15 17:35:01
I don't know - this was in the initial code you ha
achuithb
2015/07/15 18:56:47
Let get rid of it and see if anything breaks. I be
jdufault
2015/07/15 20:08:42
Done.
|
AddTrayItem(new TrayUpdate(this)); |
AddTrayItem(tray_date_); |
#endif |
@@ -694,6 +696,8 @@ views::View* SystemTray::GetTrayItemViewForTest(SystemTrayItem* item) { |
return it == tray_item_map_.end() ? NULL : it->second; |
} |
+TrayCast* SystemTray::GetTrayCastForTesting() const { return tray_cast_; } |
+ |
TrayDate* SystemTray::GetTrayDateForTesting() const { return tray_date_; } |
bool SystemTray::PerformAction(const ui::Event& event) { |