OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.h" | 5 #include "chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/sequenced_task_runner.h" | 8 #include "base/sequenced_task_runner.h" |
9 #include "components/policy/core/common/cloud/device_management_service.h" | 9 #include "components/policy/core/common/cloud/device_management_service.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 void FakeDeviceCloudPolicyInitializer::Init() { | 30 void FakeDeviceCloudPolicyInitializer::Init() { |
31 } | 31 } |
32 | 32 |
33 void FakeDeviceCloudPolicyInitializer::Shutdown() { | 33 void FakeDeviceCloudPolicyInitializer::Shutdown() { |
34 } | 34 } |
35 | 35 |
36 void FakeDeviceCloudPolicyInitializer::StartEnrollment( | 36 void FakeDeviceCloudPolicyInitializer::StartEnrollment( |
37 ManagementMode management_mode, | 37 ManagementMode management_mode, |
38 DeviceManagementService* device_management_service, | 38 DeviceManagementService* device_management_service, |
| 39 chromeos::OwnerSettingsServiceChromeOS* owner_settings_service, |
39 const std::string& auth_token, | 40 const std::string& auth_token, |
40 const AllowedDeviceModes& allowed_modes, | 41 const AllowedDeviceModes& allowed_modes, |
41 const EnrollmentCallback& enrollment_callback) { | 42 const EnrollmentCallback& enrollment_callback) { |
42 was_start_enrollment_called_ = true; | 43 was_start_enrollment_called_ = true; |
43 enrollment_callback.Run(enrollment_status_); | 44 enrollment_callback.Run(enrollment_status_); |
44 } | 45 } |
45 | 46 |
46 } // namespace policy | 47 } // namespace policy |
OLD | NEW |