| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ | 6 #define CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/policy/configuration_policy_store_interface.h" | |
| 10 #include "chrome/browser/policy/configuration_policy_provider.h" | 9 #include "chrome/browser/policy/configuration_policy_provider.h" |
| 11 | 10 |
| 12 namespace policy { | 11 namespace policy { |
| 13 | 12 |
| 13 class ConfigurationPolicyStoreInterface; |
| 14 |
| 14 class DummyConfigurationPolicyProvider : public ConfigurationPolicyProvider { | 15 class DummyConfigurationPolicyProvider : public ConfigurationPolicyProvider { |
| 15 public: | 16 public: |
| 16 explicit DummyConfigurationPolicyProvider( | 17 explicit DummyConfigurationPolicyProvider( |
| 17 const PolicyDefinitionList* policy_list) | 18 const PolicyDefinitionList* policy_list); |
| 18 : ConfigurationPolicyProvider(policy_list) { | 19 virtual ~DummyConfigurationPolicyProvider(); |
| 19 } | |
| 20 virtual ~DummyConfigurationPolicyProvider() {} | |
| 21 | 20 |
| 22 virtual bool Provide(ConfigurationPolicyStoreInterface* store) { | 21 virtual bool Provide(ConfigurationPolicyStoreInterface* store); |
| 23 return true; | |
| 24 } | |
| 25 | 22 |
| 26 private: | 23 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(DummyConfigurationPolicyProvider); | 24 DISALLOW_COPY_AND_ASSIGN(DummyConfigurationPolicyProvider); |
| 28 }; | 25 }; |
| 29 | 26 |
| 30 } // namespace policy | 27 } // namespace policy |
| 31 | 28 |
| 32 #endif // CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ | 29 #endif // CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ |
| OLD | NEW |