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

Side by Side Diff: chromeos/login/login_state.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 unified diff | Download patch
« no previous file with comments | « chromeos/disks/mock_disk_mount_manager.cc ('k') | chromeos/network/client_cert_resolver.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chromeos/login/login_state.h" 5 #include "chromeos/login/login_state.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/sys_info.h" 9 #include "base/sys_info.h"
10 #include "chromeos/chromeos_switches.h" 10 #include "chromeos/chromeos_switches.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 LoginState::LoginState() : logged_in_state_(LOGGED_IN_NONE), 127 LoginState::LoginState() : logged_in_state_(LOGGED_IN_NONE),
128 logged_in_user_type_(LOGGED_IN_USER_NONE), 128 logged_in_user_type_(LOGGED_IN_USER_NONE),
129 always_logged_in_(AlwaysLoggedInByDefault()) { 129 always_logged_in_(AlwaysLoggedInByDefault()) {
130 } 130 }
131 131
132 LoginState::~LoginState() { 132 LoginState::~LoginState() {
133 } 133 }
134 134
135 void LoginState::NotifyObservers() { 135 void LoginState::NotifyObservers() {
136 FOR_EACH_OBSERVER(LoginState::Observer, observer_list_, 136 for (auto& observer : observer_list_)
137 LoggedInStateChanged()); 137 observer.LoggedInStateChanged();
138 } 138 }
139 139
140 } // namespace chromeos 140 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/disks/mock_disk_mount_manager.cc ('k') | chromeos/network/client_cert_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698