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

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

Issue 2583393002: Send notification to users upon receiving sms messages (Closed)
Patch Set: update return type 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
« no previous file with comments | « ash/common/shelf/shelf_widget.h ('k') | ash/common/system/chromeos/network/sms_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_widget.cc
diff --git a/ash/common/shelf/shelf_widget.cc b/ash/common/shelf/shelf_widget.cc
index bc10b096b817d115dd40a9491e7cee50a905b48d..be0321f187ed3349b020cfaab2dbf310e13291d4 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"
@@ -223,6 +224,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);
@@ -382,7 +384,6 @@ void ShelfWidget::Shutdown() {
status_area_widget_->Shutdown();
status_area_widget_ = nullptr;
}
-
CloseNow();
}
« no previous file with comments | « ash/common/shelf/shelf_widget.h ('k') | ash/common/system/chromeos/network/sms_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698