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