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

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

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: Fixed mac tests Created 7 years, 1 month 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
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/chromeos/policy/proxy_policy_provider.h" 5 #include "chrome/browser/chromeos/policy/proxy_policy_provider.h"
6 6
7 namespace policy { 7 namespace policy {
8 8
9 ProxyPolicyProvider::ProxyPolicyProvider() : delegate_(NULL) {} 9 ProxyPolicyProvider::ProxyPolicyProvider() : delegate_(NULL) {}
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 void ProxyPolicyProvider::OnUpdatePolicy( 51 void ProxyPolicyProvider::OnUpdatePolicy(
52 ConfigurationPolicyProvider* provider) { 52 ConfigurationPolicyProvider* provider) {
53 DCHECK_EQ(delegate_, provider); 53 DCHECK_EQ(delegate_, provider);
54 scoped_ptr<PolicyBundle> bundle(new PolicyBundle()); 54 scoped_ptr<PolicyBundle> bundle(new PolicyBundle());
55 bundle->CopyFrom(delegate_->policies()); 55 bundle->CopyFrom(delegate_->policies());
56 UpdatePolicy(bundle.Pass()); 56 UpdatePolicy(bundle.Pass());
57 } 57 }
58 58
59 void ProxyPolicyProvider::OnSchemaRegistryUpdated(
60 const scoped_refptr<SchemaMap>& current_map,
61 bool has_new_schemas) {
62 // Ignore, and don't call RefreshPolicies. Policies only have to be refreshes
bartfab (slow) 2013/11/05 15:53:04 Nit: s/refreshes/refreshed/
Joao da Silva 2013/11/07 13:15:00 Done.
63 // when the delegate's registry is updated.
64 }
65
59 } // namespace policy 66 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698