OLD | NEW |
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/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 base::ThreadTaskRunnerHandle::Get()->PostTask( | 172 base::ThreadTaskRunnerHandle::Get()->PostTask( |
173 FROM_HERE, base::Bind(callback, arc_available_)); | 173 FROM_HERE, base::Bind(callback, arc_available_)); |
174 } | 174 } |
175 | 175 |
176 void FakeSessionManagerClient::PrioritizeArcInstance( | 176 void FakeSessionManagerClient::PrioritizeArcInstance( |
177 const ArcCallback& callback) { | 177 const ArcCallback& callback) { |
178 base::ThreadTaskRunnerHandle::Get()->PostTask( | 178 base::ThreadTaskRunnerHandle::Get()->PostTask( |
179 FROM_HERE, base::Bind(callback, arc_available_)); | 179 FROM_HERE, base::Bind(callback, arc_available_)); |
180 } | 180 } |
181 | 181 |
| 182 void FakeSessionManagerClient::EmitArcBooted() {} |
| 183 |
182 void FakeSessionManagerClient::GetArcStartTime( | 184 void FakeSessionManagerClient::GetArcStartTime( |
183 const GetArcStartTimeCallback& callback) { | 185 const GetArcStartTimeCallback& callback) { |
184 base::ThreadTaskRunnerHandle::Get()->PostTask( | 186 base::ThreadTaskRunnerHandle::Get()->PostTask( |
185 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now())); | 187 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now())); |
186 } | 188 } |
187 | 189 |
188 void FakeSessionManagerClient::RemoveArcData( | 190 void FakeSessionManagerClient::RemoveArcData( |
189 const cryptohome::Identification& cryptohome_id, | 191 const cryptohome::Identification& cryptohome_id, |
190 const ArcCallback& callback) { | 192 const ArcCallback& callback) { |
191 if (!callback.is_null()) { | 193 if (!callback.is_null()) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 const std::string& account_id, | 230 const std::string& account_id, |
229 const std::string& policy_blob) { | 231 const std::string& policy_blob) { |
230 device_local_account_policy_[account_id] = policy_blob; | 232 device_local_account_policy_[account_id] = policy_blob; |
231 } | 233 } |
232 | 234 |
233 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { | 235 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { |
234 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); | 236 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); |
235 } | 237 } |
236 | 238 |
237 } // namespace chromeos | 239 } // namespace chromeos |
OLD | NEW |