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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 2416763002: Replace FOR_EACH_OBSERVER in c/b/chromeos with range-based for (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index b69c59a70794463d916ae8231bc24db04089ccd7..6042585c99586f77dcfed04e36f372992e4012ed 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -620,7 +620,8 @@ void WizardController::RemoveObserver(Observer* observer) {
}
void WizardController::OnSessionStart() {
- FOR_EACH_OBSERVER(Observer, observer_list_, OnSessionStart());
+ for (auto& observer : observer_list_)
+ observer.OnSessionStart();
}
void WizardController::SkipUpdateEnrollAfterEula() {
@@ -917,7 +918,8 @@ void WizardController::ShowCurrentScreen() {
smooth_show_timer_.Stop();
- FOR_EACH_OBSERVER(Observer, observer_list_, OnScreenChanged(current_screen_));
+ for (auto& observer : observer_list_)
+ observer.OnScreenChanged(current_screen_);
current_screen_->Show();
}
« no previous file with comments | « chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc ('k') | chrome/browser/chromeos/mobile/mobile_activator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698