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_configuration_policy_provider.h" 6 7 namespace policy { 8 DummyConfigurationPolicyProvider(const PolicyDefinitionList * policy_list)9DummyConfigurationPolicyProvider::DummyConfigurationPolicyProvider( 10 const PolicyDefinitionList* policy_list) 11 : ConfigurationPolicyProvider(policy_list) { 12 } 13 ~DummyConfigurationPolicyProvider()14DummyConfigurationPolicyProvider::~DummyConfigurationPolicyProvider() { 15 FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer, 16 observer_list_, 17 OnProviderGoingAway()); 18 } 19 Provide(ConfigurationPolicyStoreInterface * store)20bool DummyConfigurationPolicyProvider::Provide( 21 ConfigurationPolicyStoreInterface* store) { 22 return true; 23 } 24 AddObserver(ConfigurationPolicyProvider::Observer * observer)25void DummyConfigurationPolicyProvider::AddObserver( 26 ConfigurationPolicyProvider::Observer* observer) { 27 observer_list_.AddObserver(observer); 28 } 29 RemoveObserver(ConfigurationPolicyProvider::Observer * observer)30void DummyConfigurationPolicyProvider::RemoveObserver( 31 ConfigurationPolicyProvider::Observer* observer) { 32 observer_list_.RemoveObserver(observer); 33 } 34 35 } // namespace policy 36