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

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

Issue 2966063003: Reland of Use shared NotificationControlButtonsView for non-arc notification buttons (Closed)
Patch Set: Created 3 years, 5 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/views/notification_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_control_buttons_view.cc
diff --git a/ui/message_center/views/notification_control_buttons_view.cc b/ui/message_center/views/notification_control_buttons_view.cc
index 5d71a107121365eff17a93f4ab10fef8792b26d1..2db5a2def9fb628d8f33b44d2a05131dc6becdd5 100644
--- a/ui/message_center/views/notification_control_buttons_view.cc
+++ b/ui/message_center/views/notification_control_buttons_view.cc
@@ -80,7 +80,7 @@
// Add the button at the first.
DCHECK_LE(child_count(), 1);
AddChildViewAt(settings_button_, 0);
- } else if (!show && close_button_) {
+ } else if (!show && settings_button_) {
RemoveChildView(settings_button_);
settings_button_ = nullptr;
}
« no previous file with comments | « no previous file | ui/message_center/views/notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698