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

Side by Side Diff: components/policy/core/common/cloud/policy_builder.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes 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 (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/cloud/policy_builder.h" 5 #include "components/policy/core/common/cloud/policy_builder.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
11 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h" 10 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h"
11 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
12 #include "crypto/signature_creator.h" 12 #include "crypto/signature_creator.h"
13 #include "policy/proto/cloud_policy.pb.h" 13 #include "policy/proto/cloud_policy.pb.h"
14 14
15 namespace em = enterprise_management; 15 namespace em = enterprise_management;
16 16
17 namespace policy { 17 namespace policy {
18 18
19 namespace { 19 namespace {
20 20
21 // Signing key test data in DER-encoded PKCS8 format. 21 // Signing key test data in DER-encoded PKCS8 format.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 : payload_(new em::ExternalPolicyData()) { 232 : payload_(new em::ExternalPolicyData()) {
233 policy_data().set_policy_type(dm_protocol::kChromeExtensionPolicyType); 233 policy_data().set_policy_type(dm_protocol::kChromeExtensionPolicyType);
234 } 234 }
235 235
236 236
237 // Have the instantiations compiled into the module. 237 // Have the instantiations compiled into the module.
238 template class TypedPolicyBuilder<em::CloudPolicySettings>; 238 template class TypedPolicyBuilder<em::CloudPolicySettings>;
239 template class TypedPolicyBuilder<em::ExternalPolicyData>; 239 template class TypedPolicyBuilder<em::ExternalPolicyData>;
240 240
241 } // namespace policy 241 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/policy_builder.h ('k') | components/policy/core/common/cloud/rate_limiter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698