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

Unified Diff: chrome/browser/policy/dummy_cloud_policy_provider.cc

Issue 7147015: Move user cloud policy to BrowserProcess (was 6979011) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_test include breakage Created 9 years, 6 months 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « chrome/browser/policy/dummy_cloud_policy_provider.h ('k') | chrome/browser/policy/profile_policy_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698