Index: ash/common/shelf/shelf_widget.cc |
diff --git a/ash/common/shelf/shelf_widget.cc b/ash/common/shelf/shelf_widget.cc |
index d82d5438bdfbb3f326a5fbf21f09e222c5035ab5..7292a8152a8541f0644d12977029564890ceb277 100644 |
--- a/ash/common/shelf/shelf_widget.cc |
+++ b/ash/common/shelf/shelf_widget.cc |
@@ -14,6 +14,7 @@ |
#include "ash/common/shelf/shelf_view.h" |
#include "ash/common/shelf/wm_shelf.h" |
#include "ash/common/shelf/wm_shelf_util.h" |
+#include "ash/common/system/chromeos/network/sms_observer.h" |
#include "ash/common/system/status_area_layout_manager.h" |
#include "ash/common/system/status_area_widget.h" |
#include "ash/common/wm_lookup.h" |
@@ -138,6 +139,7 @@ ShelfWidget::ShelfWidget(WmWindow* shelf_container, WmShelf* wm_shelf) |
DCHECK(wm_shelf_); |
background_animator_.AddObserver(this); |
background_animator_.AddObserver(delegate_view_); |
+ sms_observer_.reset(new SmsObserver()); |
views::Widget::InitParams params( |
views::Widget::InitParams::TYPE_WINDOW_FRAMELESS); |
@@ -297,7 +299,6 @@ void ShelfWidget::Shutdown() { |
status_area_widget_->Shutdown(); |
status_area_widget_ = nullptr; |
} |
- |
CloseNow(); |
} |