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

Side by Side Diff: ui/message_center/notification_blocker.cc

Issue 2424603002: Remove usage of FOR_EACH_OBSERVER macro in ui/message_center (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « ui/message_center/message_center_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/message_center/notification_blocker.h" 5 #include "ui/message_center/notification_blocker.h"
6 6
7 #include "ui/message_center/message_center.h" 7 #include "ui/message_center/message_center.h"
8 8
9 namespace message_center { 9 namespace message_center {
10 10
(...skipping 16 matching lines...) Expand all
27 NotificationBlocker::Observer* observer) { 27 NotificationBlocker::Observer* observer) {
28 observers_.RemoveObserver(observer); 28 observers_.RemoveObserver(observer);
29 } 29 }
30 30
31 bool NotificationBlocker::ShouldShowNotification( 31 bool NotificationBlocker::ShouldShowNotification(
32 const Notification& notification) const { 32 const Notification& notification) const {
33 return true; 33 return true;
34 } 34 }
35 35
36 void NotificationBlocker::NotifyBlockingStateChanged() { 36 void NotificationBlocker::NotifyBlockingStateChanged() {
37 FOR_EACH_OBSERVER( 37 for (auto& observer : observers_)
38 NotificationBlocker::Observer, observers_, OnBlockingStateChanged(this)); 38 observer.OnBlockingStateChanged(this);
39 } 39 }
40 40
41 } // namespace message_center 41 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/message_center_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698