| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/policy/fake_device_cloud_policy_manager.h" |
| 6 |
| 7 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" |
| 8 |
| 9 namespace policy { |
| 10 |
| 11 FakeDeviceCloudPolicyManager::FakeDeviceCloudPolicyManager( |
| 12 scoped_ptr<DeviceCloudPolicyStoreChromeOS> store, |
| 13 const scoped_refptr<base::SequencedTaskRunner>& task_runner) |
| 14 : DeviceCloudPolicyManagerChromeOS(store.Pass(), task_runner, NULL), |
| 15 unregister_result_(true) { |
| 16 } |
| 17 |
| 18 FakeDeviceCloudPolicyManager::~FakeDeviceCloudPolicyManager() { |
| 19 Shutdown(); |
| 20 } |
| 21 |
| 22 void FakeDeviceCloudPolicyManager::Unregister( |
| 23 const base::Callback<void(bool)>& callback) { |
| 24 callback.Run(unregister_result_); |
| 25 } |
| 26 |
| 27 void FakeDeviceCloudPolicyManager::Disconnect() { |
| 28 } |
| 29 |
| 30 } // namespace policy |
| OLD | NEW |