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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/input_method/mock_candidate_window_controller. h" 5 #include "chrome/browser/chromeos/input_method/mock_candidate_window_controller. h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 MockCandidateWindowController::MockCandidateWindowController() 10 MockCandidateWindowController::MockCandidateWindowController()
(...skipping 15 matching lines...) Expand all
26 CandidateWindowController::Observer* observer) { 26 CandidateWindowController::Observer* observer) {
27 ++remove_observer_count_; 27 ++remove_observer_count_;
28 observers_.RemoveObserver(observer); 28 observers_.RemoveObserver(observer);
29 } 29 }
30 30
31 void MockCandidateWindowController::Hide() { 31 void MockCandidateWindowController::Hide() {
32 ++hide_count_; 32 ++hide_count_;
33 } 33 }
34 34
35 void MockCandidateWindowController::NotifyCandidateWindowOpened() { 35 void MockCandidateWindowController::NotifyCandidateWindowOpened() {
36 FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_, 36 for (auto& observer : observers_)
37 CandidateWindowOpened()); 37 observer.CandidateWindowOpened();
38 } 38 }
39 39
40 void MockCandidateWindowController::NotifyCandidateWindowClosed() { 40 void MockCandidateWindowController::NotifyCandidateWindowClosed() {
41 FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_, 41 for (auto& observer : observers_)
42 CandidateWindowClosed()); 42 observer.CandidateWindowClosed();
43 } 43 }
44 44
45 } // namespace input_method 45 } // namespace input_method
46 } // namespace chromeos 46 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698