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

Side by Side 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: Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 /*
5 TODO(sfeuz): Throw away.
4 6
5 #include "chrome/browser/policy/configuration_policy_store_interface.h" 7 #include "chrome/browser/policy/configuration_policy_store_interface.h"
6 8
7 #include "base/values.h" 9 #include "base/values.h"
8 10
9 namespace { 11 namespace {
10 12
11 bool IsProxyPolicy(policy::ConfigurationPolicyType policy) { 13 bool IsProxyPolicy(policy::ConfigurationPolicyType policy) {
12 return policy == policy::kPolicyProxyMode || 14 return policy == policy::kPolicyProxyMode ||
13 policy == policy::kPolicyProxyServerMode || 15 policy == policy::kPolicyProxyServerMode ||
(...skipping 17 matching lines...) Expand all
31 void FilteringPolicyStoreInterface::Apply(ConfigurationPolicyType policy, 33 void FilteringPolicyStoreInterface::Apply(ConfigurationPolicyType policy,
32 Value* value) { 34 Value* value) {
33 // Apply() takes ownership of |value|. 35 // Apply() takes ownership of |value|.
34 if (IsProxyPolicy(policy) && apply_proxy_policies_) 36 if (IsProxyPolicy(policy) && apply_proxy_policies_)
35 next_->Apply(policy, value); 37 next_->Apply(policy, value);
36 else 38 else
37 delete value; 39 delete value;
38 } 40 }
39 41
40 } // namespace policy 42 } // namespace policy
43 */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698