OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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/policy/dummy_cloud_policy_provider.h" |
| 6 |
| 7 namespace policy { |
| 8 |
| 9 DummyCloudPolicyProvider::DummyCloudPolicyProvider( |
| 10 const PolicyDefinitionList* policy_list) |
| 11 : CloudPolicyProvider(policy_list) { |
| 12 } |
| 13 |
| 14 DummyCloudPolicyProvider::~DummyCloudPolicyProvider() { |
| 15 FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer, |
| 16 observer_list_, |
| 17 OnProviderGoingAway()); |
| 18 } |
| 19 |
| 20 void DummyCloudPolicyProvider::AppendCache(CloudPolicyCacheBase* cache) { |
| 21 } |
| 22 |
| 23 void DummyCloudPolicyProvider::PrependCache(CloudPolicyCacheBase* cache) { |
| 24 } |
| 25 |
| 26 bool DummyCloudPolicyProvider::Provide( |
| 27 ConfigurationPolicyStoreInterface* store) { |
| 28 return true; |
| 29 } |
| 30 void DummyCloudPolicyProvider::AddObserver( |
| 31 ConfigurationPolicyProvider::Observer* observer) { |
| 32 observer_list_.AddObserver(observer); |
| 33 } |
| 34 |
| 35 void DummyCloudPolicyProvider::RemoveObserver( |
| 36 ConfigurationPolicyProvider::Observer* observer) { |
| 37 observer_list_.RemoveObserver(observer); |
| 38 } |
| 39 |
| 40 } // namespace policy |
OLD | NEW |