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

Unified Diff: chrome/browser/chromeos/input_method/mock_candidate_window_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/input_method/mock_candidate_window_controller.cc
diff --git a/chrome/browser/chromeos/input_method/mock_candidate_window_controller.cc b/chrome/browser/chromeos/input_method/mock_candidate_window_controller.cc
index de791c9c65e272f07735c1f266480352f2e78888..5c95b59916255572b0bbef69765a594d61a8196d 100644
--- a/chrome/browser/chromeos/input_method/mock_candidate_window_controller.cc
+++ b/chrome/browser/chromeos/input_method/mock_candidate_window_controller.cc
@@ -33,13 +33,13 @@ void MockCandidateWindowController::Hide() {
}
void MockCandidateWindowController::NotifyCandidateWindowOpened() {
- FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_,
- CandidateWindowOpened());
+ for (auto& observer : observers_)
+ observer.CandidateWindowOpened();
}
void MockCandidateWindowController::NotifyCandidateWindowClosed() {
- FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_,
- CandidateWindowClosed());
+ for (auto& observer : observers_)
+ observer.CandidateWindowClosed();
}
} // namespace input_method

Powered by Google App Engine
This is Rietveld 408576698