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

Side by Side Diff: chrome/browser/chromeos/policy/fake_device_cloud_policy_manager.cc

Issue 751703003: Implemented consumer management unenrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcpm
Patch Set: Created 6 years 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698