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

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

Issue 2620133003: Set slide_out_enabled property for CustomNotification (Closed)
Patch Set: Addressed comment and added tests 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 746f0822b8bdb8df86ec5df65c49a584c8456275..c7bdce476419936b85bc8b8daeab80f58cf750ec 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -666,8 +666,6 @@ void NotificationView::CreateOrUpdateActionButtonViews(
void NotificationView::CreateOrUpdateCloseButtonView(
const Notification& notification) {
- set_slide_out_enabled(!notification.pinned());
-
if (!notification.pinned() && !close_button_) {
PaddedButton* close = new PaddedButton(this);
close->SetPadding(-kCloseIconRightPadding, kCloseIconTopPadding);

Powered by Google App Engine
This is Rietveld 408576698