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

Side by Side Diff: ash/common/system/chromeos/network/vpn_delegate.cc

Issue 2414303002: Remove usage of FOR_EACH_OBSERVER macro in ash/common (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
« no previous file with comments | « ash/common/shelf/wm_shelf.cc ('k') | ash/common/system/chromeos/power/power_status.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ash/common/system/chromeos/network/vpn_delegate.h" 5 #include "ash/common/system/chromeos/network/vpn_delegate.h"
6 6
7 #include "chromeos/network/network_state.h" 7 #include "chromeos/network/network_state.h"
8 #include "third_party/cros_system_api/dbus/service_constants.h" 8 #include "third_party/cros_system_api/dbus/service_constants.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 30 matching lines...) Expand all
41 41
42 void VPNDelegate::AddObserver(Observer* observer) { 42 void VPNDelegate::AddObserver(Observer* observer) {
43 observer_list_.AddObserver(observer); 43 observer_list_.AddObserver(observer);
44 } 44 }
45 45
46 void VPNDelegate::RemoveObserver(Observer* observer) { 46 void VPNDelegate::RemoveObserver(Observer* observer) {
47 observer_list_.RemoveObserver(observer); 47 observer_list_.RemoveObserver(observer);
48 } 48 }
49 49
50 void VPNDelegate::NotifyObservers() { 50 void VPNDelegate::NotifyObservers() {
51 FOR_EACH_OBSERVER(Observer, observer_list_, OnVPNProvidersChanged()); 51 for (auto& observer : observer_list_)
52 observer.OnVPNProvidersChanged();
52 } 53 }
53 54
54 } // namespace ash 55 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/shelf/wm_shelf.cc ('k') | ash/common/system/chromeos/power/power_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698