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

Unified Diff: chromeos/dbus/fake_update_engine_client.cc

Issue 2413963002: Replace FOR_EACH_OBSERVER in chromeos/ with range-based for (Closed)
Patch Set: Run the script again with '/mg' 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
« no previous file with comments | « chromeos/dbus/fake_shill_service_client.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_update_engine_client.cc
diff --git a/chromeos/dbus/fake_update_engine_client.cc b/chromeos/dbus/fake_update_engine_client.cc
index a18cf1b1dda6ed4790a9342f6eb7b92fdd01b191..078a74d25965a075a66df9fa8c2631cca76415fc 100644
--- a/chromeos/dbus/fake_update_engine_client.cc
+++ b/chromeos/dbus/fake_update_engine_client.cc
@@ -66,7 +66,8 @@ UpdateEngineClient::Status FakeUpdateEngineClient::GetLastStatus() {
void FakeUpdateEngineClient::NotifyObserversThatStatusChanged(
const UpdateEngineClient::Status& status) {
- FOR_EACH_OBSERVER(Observer, observers_, UpdateStatusChanged(status));
+ for (auto& observer : observers_)
+ observer.UpdateStatusChanged(status);
}
void FakeUpdateEngineClient::SetChannel(const std::string& target_channel,
« no previous file with comments | « chromeos/dbus/fake_shill_service_client.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698