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

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

Issue 2853783004: Retrieve pinned flag directly from Notification class (Closed)
Patch Set: Created 3 years, 8 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/message_center_view.cc
diff --git a/ui/message_center/views/message_center_view.cc b/ui/message_center/views/message_center_view.cc
index defba470f0d6fcd8fa04efa8a70722cd95301f86..903f8b0399aae9a502c79537e0b0b5288b2bd905 100644
--- a/ui/message_center/views/message_center_view.cc
+++ b/ui/message_center/views/message_center_view.cc
@@ -643,7 +643,7 @@ void MessageCenterView::EnableCloseAllIfAppropriate() {
if (mode_ == Mode::NOTIFICATIONS) {
bool no_closable_views = true;
for (const auto& view : notification_views_) {
- if (!view.second->IsPinned()) {
+ if (!view.second->pinned()) {
no_closable_views = false;
break;
}
@@ -676,11 +676,11 @@ void MessageCenterView::UpdateNotification(const std::string& id) {
if ((*iter)->id() == id) {
int old_width = view->width();
int old_height = view->height();
- bool old_pinned = view->IsPinned();
+ bool old_pinned = view->pinned();
message_list_view_->UpdateNotification(view, **iter);
if (view->GetHeightForWidth(old_width) != old_height) {
Update(true /* animate */);
- } else if (view->IsPinned() != old_pinned) {
+ } else if (view->pinned() != old_pinned) {
// Animate flag is false, since the pinned flag transition doesn't need
// animation.
Update(false /* animate */);
« no previous file with comments | « ui/message_center/views/custom_notification_view_unittest.cc ('k') | ui/message_center/views/message_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698