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

Unified Diff: google_apis/drive/auth_service.cc

Issue 2422843003: Remove usage of FOR_EACH_OBSERVER macro in google_apis (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
« no previous file with comments | « no previous file | google_apis/gaia/account_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/auth_service.cc
diff --git a/google_apis/drive/auth_service.cc b/google_apis/drive/auth_service.cc
index c14f32ea60ed9e8d481d125ccad28a8c60798f0c..cfa54fa3f48b4cf0d13cd8274f3e4bbbe2f90164 100644
--- a/google_apis/drive/auth_service.cc
+++ b/google_apis/drive/auth_service.cc
@@ -226,9 +226,8 @@ void AuthService::OnHandleRefreshToken(bool has_refresh_token) {
access_token_.clear();
has_refresh_token_ = has_refresh_token;
- FOR_EACH_OBSERVER(AuthServiceObserver,
- observers_,
- OnOAuth2RefreshTokenChanged());
+ for (auto& observer : observers_)
+ observer.OnOAuth2RefreshTokenChanged();
}
} // namespace google_apis
« no previous file with comments | « no previous file | google_apis/gaia/account_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698