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

Unified Diff: ui/message_center/message_center_impl.cc

Issue 2295923004: Don't close pinned notification by the close all button (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | ui/message_center/message_center_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_impl.cc
diff --git a/ui/message_center/message_center_impl.cc b/ui/message_center/message_center_impl.cc
index b5f3412edc46c159f84dbfbac19f0ca7d7d19271..d4b81afc9347c1d40a5df5b40e4122c4ae97c42a 100644
--- a/ui/message_center/message_center_impl.cc
+++ b/ui/message_center/message_center_impl.cc
@@ -650,7 +650,7 @@ void MessageCenterImpl::RemoveNotificationsForNotifierId(
}
void MessageCenterImpl::RemoveAllNotifications(bool by_user, RemoveType type) {
- bool remove_pinned = (type == RemoveType::NON_PINNED);
+ bool remove_pinned = (type == RemoveType::ALL);
const NotificationBlockers& blockers =
(type == RemoveType::ALL ? NotificationBlockers() /* empty blockers */
« no previous file with comments | « no previous file | ui/message_center/message_center_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698