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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 2424853003: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/ui (Closed)
Patch Set: explicit types 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index 2f15c4267b3f6cd79647705383686b75847ddf81..5e37efa4dc0b65b2bee58d14286a3560e5d03dbd 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -1060,9 +1060,10 @@ void SystemTrayDelegateChromeOS::OnAppWindowRemoved(
// Overridden from SupervisedUserServiceObserver.
void SystemTrayDelegateChromeOS::OnCustodianInfoChanged() {
- FOR_EACH_OBSERVER(
- ash::CustodianInfoTrayObserver, custodian_info_changed_observers_,
- OnCustodianInfoChanged());
+ for (ash::CustodianInfoTrayObserver& observer :
+ custodian_info_changed_observers_) {
+ observer.OnCustodianInfoChanged();
+ }
}
void SystemTrayDelegateChromeOS::OnAccessibilityStatusChanged(
@@ -1076,8 +1077,8 @@ void SystemTrayDelegateChromeOS::OnAccessibilityStatusChanged(
void SystemTrayDelegateChromeOS::OnShutdownPolicyChanged(
bool reboot_on_shutdown) {
// Notify all observers.
- FOR_EACH_OBSERVER(ash::ShutdownPolicyObserver, shutdown_policy_observers_,
- OnShutdownPolicyChanged(reboot_on_shutdown));
+ for (ash::ShutdownPolicyObserver& observer : shutdown_policy_observers_)
+ observer.OnShutdownPolicyChanged(reboot_on_shutdown);
}
void SystemTrayDelegateChromeOS::ImeMenuActivationChanged(bool is_active) {

Powered by Google App Engine
This is Rietveld 408576698