| Index: ash/system/tray/system_tray.cc
|
| diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
|
| index eec513cdac80fe9420c6ca6f1ab03dba335b831f..6f48ffcb28d50d5209bce2c10bc8d3fb3e06cc9d 100644
|
| --- a/ash/system/tray/system_tray.cc
|
| +++ b/ash/system/tray/system_tray.cc
|
| @@ -5,6 +5,8 @@
|
| #include "ash/system/tray/system_tray.h"
|
|
|
| #include "ash/ash_switches.h"
|
| +#include "ash/common/session/session_state_delegate.h"
|
| +#include "ash/common/shelf/wm_shelf.h"
|
| #include "ash/common/shelf/wm_shelf_util.h"
|
| #include "ash/common/shell_window_ids.h"
|
| #include "ash/common/system/date/tray_date.h"
|
| @@ -14,8 +16,6 @@
|
| #include "ash/common/system/update/tray_update.h"
|
| #include "ash/common/wm_shell.h"
|
| #include "ash/metrics/user_metrics_recorder.h"
|
| -#include "ash/shelf/shelf_layout_manager.h"
|
| -#include "ash/shelf/shelf_util.h"
|
| #include "ash/shell.h"
|
| #include "ash/system/audio/tray_audio.h"
|
| #include "ash/system/cast/tray_cast.h"
|
| @@ -531,7 +531,7 @@ void SystemTray::ShowItems(const std::vector<SystemTrayItem*>& items,
|
| UpdateNotificationBubble(); // State changed, re-create notifications.
|
| if (!notification_bubble_)
|
| UpdateWebNotifications();
|
| - GetShelfLayoutManager()->UpdateAutoHideState();
|
| + GetShelf()->UpdateAutoHideState();
|
|
|
| // When we show the system menu in our alternate shelf layout, we need to
|
| // tint the background.
|
| @@ -651,7 +651,7 @@ void SystemTray::HideBubbleWithView(const TrayBubbleView* bubble_view) {
|
| if (system_bubble_.get() && bubble_view == system_bubble_->bubble_view()) {
|
| DestroySystemBubble();
|
| UpdateNotificationBubble(); // State changed, re-create notifications.
|
| - GetShelfLayoutManager()->UpdateAutoHideState();
|
| + GetShelf()->UpdateAutoHideState();
|
| } else if (notification_bubble_.get() &&
|
| bubble_view == notification_bubble_->bubble_view()) {
|
| DestroyNotificationBubble();
|
|
|