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

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

Issue 6979011: Move user cloud policy to BrowserProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments by mnissler. 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/configuration_policy_store_interface.cc
diff --git a/chrome/browser/policy/configuration_policy_store_interface.cc b/chrome/browser/policy/configuration_policy_store_interface.cc
deleted file mode 100644
index 40cf472d67827ae78fbede86d507a045b19df93d..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/configuration_policy_store_interface.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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/configuration_policy_store_interface.h"
-
-#include "base/values.h"
-
-namespace {
-
-bool IsProxyPolicy(policy::ConfigurationPolicyType policy) {
- return policy == policy::kPolicyProxyMode ||
- policy == policy::kPolicyProxyServerMode ||
- policy == policy::kPolicyProxyServer ||
- policy == policy::kPolicyProxyPacUrl ||
- policy == policy::kPolicyProxyBypassList;
-}
-
-} // namespace
-
-namespace policy {
-
-void ObservingPolicyStoreInterface::Apply(ConfigurationPolicyType policy,
- Value* value) {
- next_->Apply(policy, value);
-
- if (IsProxyPolicy(policy))
- proxy_policy_applied_ = true;
-}
-
-void FilteringPolicyStoreInterface::Apply(ConfigurationPolicyType policy,
- Value* value) {
- // Apply() takes ownership of |value|.
- if (IsProxyPolicy(policy) && apply_proxy_policies_)
- next_->Apply(policy, value);
- else
- delete value;
-}
-
-} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698