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

Unified Diff: chrome/browser/chromeos/mobile/mobile_activator.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/mobile/mobile_activator.cc
diff --git a/chrome/browser/chromeos/mobile/mobile_activator.cc b/chrome/browser/chromeos/mobile/mobile_activator.cc
index 32b179b7cdf08707cf6e702d6408c26557cddfd8..58a861375e9d3ecf1d0c0071962686de9ee0c012 100644
--- a/chrome/browser/chromeos/mobile/mobile_activator.cc
+++ b/chrome/browser/chromeos/mobile/mobile_activator.cc
@@ -998,8 +998,8 @@ void MobileActivator::ChangeState(const NetworkState* network,
state_ = new_state;
// Signal to observers layer that the state is changing.
- FOR_EACH_OBSERVER(Observer, observers_,
- OnActivationStateChanged(network, state_, error_description));
+ for (auto& observer : observers_)
+ observer.OnActivationStateChanged(network, state_, error_description);
// Pick action that should happen on entering the new state.
switch (new_state) {
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/chromeos/net/network_portal_detector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698