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

Unified Diff: ui/message_center/views/notification_view.cc

Issue 2668583005: Not Remove Non-Closable Arc Popup When Close Button is Pressed (Closed)
Patch Set: Created 3 years, 11 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: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index c7bdce476419936b85bc8b8daeab80f58cf750ec..59a434b45990c6a6d4b2e8bb3ecea699f57b89ca 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -349,7 +349,7 @@ void NotificationView::ButtonPressed(views::Button* sender,
if (close_button_ && sender == close_button_.get()) {
// Warning: This causes the NotificationView itself to be deleted, so don't
// do anything afterwards.
- controller()->RemoveNotification(id, true /* by_user */);
+ OnCloseButtonPressed();
return;
}

Powered by Google App Engine
This is Rietveld 408576698