Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2017)

Unified Diff: ash/common/shelf/shelf_widget.cc

Issue 2583393002: Send notification to users upon receiving sms messages (Closed)
Patch Set: address comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/shelf/shelf_widget.cc
diff --git a/ash/common/shelf/shelf_widget.cc b/ash/common/shelf/shelf_widget.cc
index d735e5897c17a0ddbd815142ed7698def34e053b..d34af55e2e15b81f4f96058aa6087936c4dec1e9 100644
--- a/ash/common/shelf/shelf_widget.cc
+++ b/ash/common/shelf/shelf_widget.cc
@@ -15,6 +15,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"
@@ -222,6 +223,7 @@ ShelfWidget::ShelfWidget(WmWindow* shelf_container, WmShelf* wm_shelf)
activating_as_fallback_(false) {
background_animator_.AddObserver(this);
background_animator_.AddObserver(delegate_view_);
+ sms_observer_.reset(new SmsObserver());
views::Widget::InitParams params(
views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
@@ -384,7 +386,6 @@ void ShelfWidget::Shutdown() {
status_area_widget_->Shutdown();
status_area_widget_ = nullptr;
}
-
CloseNow();
}

Powered by Google App Engine
This is Rietveld 408576698