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

Side by Side Diff: components/policy/core/common/forwarding_policy_provider.cc

Issue 92133003: Move ForwardingPolicyProvider, etc. to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/forwarding_policy_provider.h" 5 #include "components/policy/core/common/forwarding_policy_provider.h"
6 6
7 #include "components/policy/core/common/schema_map.h" 7 #include "components/policy/core/common/schema_map.h"
8 #include "components/policy/core/common/schema_registry.h" 8 #include "components/policy/core/common/schema_registry.h"
9 9
10 namespace policy { 10 namespace policy {
11 11
12 ForwardingPolicyProvider::ForwardingPolicyProvider( 12 ForwardingPolicyProvider::ForwardingPolicyProvider(
13 ConfigurationPolicyProvider* delegate) 13 ConfigurationPolicyProvider* delegate)
14 : delegate_(delegate), state_(WAITING_FOR_REGISTRY_READY) { 14 : delegate_(delegate), state_(WAITING_FOR_REGISTRY_READY) {
15 delegate_->AddObserver(this); 15 delegate_->AddObserver(this);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Always forward the Chrome policy, even if the components are not ready 87 // Always forward the Chrome policy, even if the components are not ready
88 // yet. 88 // yet.
89 const PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); 89 const PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, "");
90 bundle->Get(chrome_ns).CopyFrom(delegate_->policies().Get(chrome_ns)); 90 bundle->Get(chrome_ns).CopyFrom(delegate_->policies().Get(chrome_ns));
91 } 91 }
92 92
93 UpdatePolicy(bundle.Pass()); 93 UpdatePolicy(bundle.Pass());
94 } 94 }
95 95
96 } // namespace policy 96 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698