Index: ash/system/tray/system_tray.cc |
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc |
index 514796a6aa3dac0927dab64f7b6ce33110d78eed..963618f7c695dde730703493c5087a5f45c73fc6 100644 |
--- a/ash/system/tray/system_tray.cc |
+++ b/ash/system/tray/system_tray.cc |
@@ -12,7 +12,6 @@ |
#include "ash/common/system/date/tray_date.h" |
#include "ash/common/system/tray/system_tray_delegate.h" |
#include "ash/common/system/tray/system_tray_item.h" |
-#include "ash/common/system/tray/tray_bubble_wrapper.h" |
#include "ash/common/system/tray/tray_constants.h" |
#include "ash/common/system/tray_accessibility.h" |
#include "ash/common/system/update/tray_update.h" |
@@ -24,6 +23,7 @@ |
#include "ash/shell.h" |
#include "ash/system/cast/tray_cast.h" |
#include "ash/system/status_area_widget.h" |
+#include "ash/system/tray/tray_bubble_wrapper.h" |
#include "ash/system/user/login_status.h" |
#include "ash/system/user/tray_user.h" |
#include "ash/system/user/tray_user_separator.h" |
@@ -131,8 +131,7 @@ |
// SystemTray |
SystemTray::SystemTray(StatusAreaWidget* status_area_widget) |
- : TrayBackgroundView(status_area_widget->wm_shelf()), |
- status_area_widget_(status_area_widget), |
+ : TrayBackgroundView(status_area_widget), |
items_(), |
detailed_item_(nullptr), |
default_bubble_height_(0), |
@@ -144,7 +143,6 @@ |
tray_update_(nullptr), |
screen_capture_tray_item_(nullptr), |
screen_share_tray_item_(nullptr) { |
- DCHECK(status_area_widget_); |
SetContentsBackground(); |
} |
@@ -534,7 +532,7 @@ |
UpdateNotificationBubble(); // State changed, re-create notifications. |
if (!notification_bubble_) |
UpdateWebNotifications(); |
- shelf()->UpdateAutoHideState(); |
+ GetShelf()->UpdateAutoHideState(); |
// When we show the system menu in our alternate shelf layout, we need to |
// tint the background. |
@@ -605,7 +603,7 @@ |
height = |
std::max(0, work_area.height() - bubble_view->GetBoundsInScreen().y()); |
} |
- status_area_widget_->web_notification_tray()->SetSystemTrayHeight(height); |
+ status_area_widget()->web_notification_tray()->SetSystemTrayHeight(height); |
} |
base::string16 SystemTray::GetAccessibleTimeString( |
@@ -654,7 +652,7 @@ |
if (system_bubble_.get() && bubble_view == system_bubble_->bubble_view()) { |
DestroySystemBubble(); |
UpdateNotificationBubble(); // State changed, re-create notifications. |
- shelf()->UpdateAutoHideState(); |
+ GetShelf()->UpdateAutoHideState(); |
} else if (notification_bubble_.get() && |
bubble_view == notification_bubble_->bubble_view()) { |
DestroyNotificationBubble(); |