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

Side by Side Diff: chrome/browser/policy/proxy_policy_provider.cc

Issue 10545033: Removed the PolicyDefinitionList from the ConfigurationPolicyProvider interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/policy/proxy_policy_provider.h" 5 #include "chrome/browser/policy/proxy_policy_provider.h"
6 6
7 #include "policy/policy_constants.h"
8
9 namespace policy { 7 namespace policy {
10 8
11 ProxyPolicyProvider::ProxyPolicyProvider() 9 ProxyPolicyProvider::ProxyPolicyProvider() {}
12 : ConfigurationPolicyProvider(GetChromePolicyDefinitionList()) {}
13 10
14 ProxyPolicyProvider::~ProxyPolicyProvider() {} 11 ProxyPolicyProvider::~ProxyPolicyProvider() {}
15 12
16 void ProxyPolicyProvider::SetDelegate(ConfigurationPolicyProvider* delegate) { 13 void ProxyPolicyProvider::SetDelegate(ConfigurationPolicyProvider* delegate) {
17 if (delegate) { 14 if (delegate) {
18 registrar_.reset(new ConfigurationPolicyObserverRegistrar()); 15 registrar_.reset(new ConfigurationPolicyObserverRegistrar());
19 registrar_->Init(delegate, this); 16 registrar_->Init(delegate, this);
20 OnUpdatePolicy(delegate); 17 OnUpdatePolicy(delegate);
21 } else { 18 } else {
22 registrar_.reset(); 19 registrar_.reset();
(...skipping 16 matching lines...) Expand all
39 UpdatePolicy(bundle.Pass()); 36 UpdatePolicy(bundle.Pass());
40 } 37 }
41 38
42 void ProxyPolicyProvider::OnProviderGoingAway( 39 void ProxyPolicyProvider::OnProviderGoingAway(
43 ConfigurationPolicyProvider* provider) { 40 ConfigurationPolicyProvider* provider) {
44 registrar_.reset(); 41 registrar_.reset();
45 UpdatePolicy(scoped_ptr<PolicyBundle>(new PolicyBundle())); 42 UpdatePolicy(scoped_ptr<PolicyBundle>(new PolicyBundle()));
46 } 43 }
47 44
48 } // namespace policy 45 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_loader_win_unittest.cc ('k') | chrome/browser/policy/user_cloud_policy_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698