Implemented consumer management unenrollment.
[chromium-blink-merge.git] / chrome / browser / chromeos / policy / fake_device_cloud_policy_manager.cc
blobe16cc98557a3b06bb6d09c439a2b7b8d980b859e
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.
5 #include "chrome/browser/chromeos/policy/fake_device_cloud_policy_manager.h"
7 #include "base/callback.h"
8 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h"
10 namespace policy {
12 FakeDeviceCloudPolicyManager::FakeDeviceCloudPolicyManager(
13 scoped_ptr<DeviceCloudPolicyStoreChromeOS> store,
14 const scoped_refptr<base::SequencedTaskRunner>& task_runner)
15 : DeviceCloudPolicyManagerChromeOS(store.Pass(), task_runner, NULL),
16 unregister_result_(true) {
19 FakeDeviceCloudPolicyManager::~FakeDeviceCloudPolicyManager() {
20 Shutdown();
23 void FakeDeviceCloudPolicyManager::Unregister(
24 const UnregisterCallback& callback) {
25 callback.Run(unregister_result_);
28 void FakeDeviceCloudPolicyManager::Disconnect() {
31 } // namespace policy