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

Side by Side Diff: chromeos/dbus/fake_session_manager_client.cc

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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/dbus/fake_session_manager_client.h ('k') | chromeos/dbus/fake_system_clock_client.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/dbus/fake_session_manager_client.h" 5 #include "chromeos/dbus/fake_session_manager_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 void FakeSessionManagerClient::AddObserver(Observer* observer) { 30 void FakeSessionManagerClient::AddObserver(Observer* observer) {
31 observers_.AddObserver(observer); 31 observers_.AddObserver(observer);
32 } 32 }
33 33
34 void FakeSessionManagerClient::RemoveObserver(Observer* observer) { 34 void FakeSessionManagerClient::RemoveObserver(Observer* observer) {
35 observers_.RemoveObserver(observer); 35 observers_.RemoveObserver(observer);
36 } 36 }
37 37
38 bool FakeSessionManagerClient::HasObserver(Observer* observer) { 38 bool FakeSessionManagerClient::HasObserver(const Observer* observer) const {
39 return observers_.HasObserver(observer); 39 return observers_.HasObserver(observer);
40 } 40 }
41 41
42 void FakeSessionManagerClient::EmitLoginPromptVisible() { 42 void FakeSessionManagerClient::EmitLoginPromptVisible() {
43 } 43 }
44 44
45 void FakeSessionManagerClient::RestartJob(int pid, 45 void FakeSessionManagerClient::RestartJob(int pid,
46 const std::string& command_line) { 46 const std::string& command_line) {
47 } 47 }
48 48
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const std::string& account_id, 171 const std::string& account_id,
172 const std::string& policy_blob) { 172 const std::string& policy_blob) {
173 device_local_account_policy_[account_id] = policy_blob; 173 device_local_account_policy_[account_id] = policy_blob;
174 } 174 }
175 175
176 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { 176 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
177 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); 177 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success));
178 } 178 }
179 179
180 } // namespace chromeos 180 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_session_manager_client.h ('k') | chromeos/dbus/fake_system_clock_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698