commit | b2782a73b54bc537477411164093c743528fa179 | [log] [tgz] |
---|---|---|
author | Keren Zhu <[email protected]> | Fri Sep 27 17:32:38 2024 |
committer | Chromium LUCI CQ <[email protected]> | Fri Sep 27 17:32:38 2024 |
tree | 28b10b8f75e6fd30ca930b47bab1fb680db2c88d | |
parent | 81fed776ced6abbc8d596227bef0b52ea265cb4a [diff] [blame] |
base: use ObserverList::Notify() in ui/message_center This CL was uploaded by git cl split. [email protected] Bug: 40727208 Change-Id: I531d8825d6f1b1a4ce3a75ac5aded749389d150d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5893968 Auto-Submit: Keren Zhu <[email protected]> Reviewed-by: Yoshiki Iguchi <[email protected]> Commit-Queue: Yoshiki Iguchi <[email protected]> Cr-Commit-Position: refs/heads/main@{#1361250}
diff --git a/ui/message_center/notification_blocker.cc b/ui/message_center/notification_blocker.cc index 5ea0af1..807e599 100644 --- a/ui/message_center/notification_blocker.cc +++ b/ui/message_center/notification_blocker.cc
@@ -41,8 +41,7 @@ } void NotificationBlocker::NotifyBlockingStateChanged() { - for (auto& observer : observers_) - observer.OnBlockingStateChanged(this); + observers_.Notify(&Observer::OnBlockingStateChanged, this); } } // namespace message_center