| Index: ash/shell.cc
|
| diff --git a/ash/shell.cc b/ash/shell.cc
|
| index 6857519f59db86bf6bafea80d694df4b4a1da95d..1e470752f64136709cbb19609f651562622dd9a0 100644
|
| --- a/ash/shell.cc
|
| +++ b/ash/shell.cc
|
| @@ -30,6 +30,7 @@
|
| #include "ash/system/status_area_widget.h"
|
| #include "ash/system/tray/system_tray.h"
|
| #include "ash/system/tray/system_tray_delegate.h"
|
| +#include "ash/system/web_notification/web_notification_tray.h"
|
| #include "ash/tooltips/tooltip_controller.h"
|
| #include "ash/touch/touch_observer_hud.h"
|
| #include "ash/wm/activation_controller.h"
|
| @@ -225,6 +226,12 @@ void CreateSpecialContainers(aura::RootWindow* root_window) {
|
| "StatusContainer",
|
| lock_screen_related_containers);
|
|
|
| + aura::Window* settings_bubble_container = CreateContainer(
|
| + internal::kShellWindowId_SettingBubbleContainer,
|
| + "SettingBubbleContainer",
|
| + lock_screen_related_containers);
|
| + SetChildWindowVisibilityChangesAnimated(settings_bubble_container);
|
| +
|
| aura::Window* menu_container = CreateContainer(
|
| internal::kShellWindowId_MenuContainer,
|
| "MenuContainer",
|
| @@ -237,12 +244,6 @@ void CreateSpecialContainers(aura::RootWindow* root_window) {
|
| lock_screen_related_containers);
|
| SetChildWindowVisibilityChangesAnimated(drag_drop_container);
|
|
|
| - aura::Window* settings_bubble_container = CreateContainer(
|
| - internal::kShellWindowId_SettingBubbleContainer,
|
| - "SettingBubbleContainer",
|
| - lock_screen_related_containers);
|
| - SetChildWindowVisibilityChangesAnimated(settings_bubble_container);
|
| -
|
| CreateContainer(internal::kShellWindowId_OverlayContainer,
|
| "OverlayContainer",
|
| lock_screen_related_containers);
|
| @@ -614,6 +615,7 @@ Shell::~Shell() {
|
|
|
| // The system tray needs to be reset before all the windows are destroyed.
|
| system_tray_.reset();
|
| + web_notification_tray_.reset();
|
| tray_delegate_.reset();
|
|
|
| // Destroy secondary monitor's widgets before all the windows are destroyed.
|
| @@ -785,6 +787,9 @@ void Shell::Init() {
|
|
|
| status_area_widget_ = new internal::StatusAreaWidget;
|
|
|
| + web_notification_tray_.reset(new WebNotificationTray());
|
| + status_area_widget_->AddTray(web_notification_tray_.get());
|
| +
|
| system_tray_.reset(new SystemTray());
|
| status_area_widget_->AddTray(system_tray_.get());
|
| system_tray_->Initialize();
|
|
|