Index: chrome/browser/policy/dummy_cloud_policy_provider.cc |
diff --git a/chrome/browser/policy/dummy_cloud_policy_provider.cc b/chrome/browser/policy/dummy_cloud_policy_provider.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6646fc162a9b832bb2b364b35eeeb187ba7a626e |
--- /dev/null |
+++ b/chrome/browser/policy/dummy_cloud_policy_provider.cc |
@@ -0,0 +1,40 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/policy/dummy_cloud_policy_provider.h" |
+ |
+namespace policy { |
+ |
+DummyCloudPolicyProvider::DummyCloudPolicyProvider( |
+ const PolicyDefinitionList* policy_list) |
+ : CloudPolicyProvider(policy_list) { |
+} |
+ |
+DummyCloudPolicyProvider::~DummyCloudPolicyProvider() { |
+ FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer, |
+ observer_list_, |
+ OnProviderGoingAway()); |
+} |
+ |
+void DummyCloudPolicyProvider::AppendCache(CloudPolicyCacheBase* cache) { |
+} |
+ |
+void DummyCloudPolicyProvider::PrependCache(CloudPolicyCacheBase* cache) { |
+} |
+ |
+bool DummyCloudPolicyProvider::Provide( |
+ ConfigurationPolicyStoreInterface* store) { |
+ return true; |
+} |
+void DummyCloudPolicyProvider::AddObserver( |
+ ConfigurationPolicyProvider::Observer* observer) { |
+ observer_list_.AddObserver(observer); |
+} |
+ |
+void DummyCloudPolicyProvider::RemoveObserver( |
+ ConfigurationPolicyProvider::Observer* observer) { |
+ observer_list_.RemoveObserver(observer); |
+} |
+ |
+} // namespace policy |