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

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

Issue 2693013006: arc: Add cryptohome_id to EmitArcBooted. (Closed)
Patch Set: Address Luis's comments. Created 3 years, 10 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 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 FROM_HERE, base::Bind(callback, arc_available_)); 182 FROM_HERE, base::Bind(callback, arc_available_));
183 } 183 }
184 184
185 void FakeSessionManagerClient::SetArcCpuRestriction( 185 void FakeSessionManagerClient::SetArcCpuRestriction(
186 login_manager::ContainerCpuRestrictionState restriction_state, 186 login_manager::ContainerCpuRestrictionState restriction_state,
187 const ArcCallback& callback) { 187 const ArcCallback& callback) {
188 base::ThreadTaskRunnerHandle::Get()->PostTask( 188 base::ThreadTaskRunnerHandle::Get()->PostTask(
189 FROM_HERE, base::Bind(callback, arc_available_)); 189 FROM_HERE, base::Bind(callback, arc_available_));
190 } 190 }
191 191
192 void FakeSessionManagerClient::EmitArcBooted() {} 192 void FakeSessionManagerClient::EmitArcBooted(
193 const cryptohome::Identification& cryptohome_id,
194 const ArcCallback& callback) {
195 base::ThreadTaskRunnerHandle::Get()->PostTask(
196 FROM_HERE, base::Bind(callback, arc_available_));
197 }
193 198
194 void FakeSessionManagerClient::GetArcStartTime( 199 void FakeSessionManagerClient::GetArcStartTime(
195 const GetArcStartTimeCallback& callback) { 200 const GetArcStartTimeCallback& callback) {
196 base::ThreadTaskRunnerHandle::Get()->PostTask( 201 base::ThreadTaskRunnerHandle::Get()->PostTask(
197 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now())); 202 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now()));
198 } 203 }
199 204
200 void FakeSessionManagerClient::RemoveArcData( 205 void FakeSessionManagerClient::RemoveArcData(
201 const cryptohome::Identification& cryptohome_id, 206 const cryptohome::Identification& cryptohome_id,
202 const ArcCallback& callback) { 207 const ArcCallback& callback) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 const std::string& policy_blob) { 246 const std::string& policy_blob) {
242 device_local_account_policy_[account_id] = policy_blob; 247 device_local_account_policy_[account_id] = policy_blob;
243 } 248 }
244 249
245 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { 250 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
246 for (auto& observer : observers_) 251 for (auto& observer : observers_)
247 observer.PropertyChangeComplete(success); 252 observer.PropertyChangeComplete(success);
248 } 253 }
249 254
250 } // namespace chromeos 255 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_session_manager_client.h ('k') | chromeos/dbus/mock_session_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698