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

Side by Side Diff: chrome/browser/chromeos/policy/device_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chromeos/policy/device_policy_builder.h" 5 #include "chrome/browser/chromeos/policy/device_policy_builder.h"
6 6
7 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
8 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" 7 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h"
8 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
9 9
10 namespace em = enterprise_management; 10 namespace em = enterprise_management;
11 11
12 namespace policy { 12 namespace policy {
13 13
14 template<> 14 template<>
15 TypedPolicyBuilder<em::ChromeDeviceSettingsProto>::TypedPolicyBuilder() 15 TypedPolicyBuilder<em::ChromeDeviceSettingsProto>::TypedPolicyBuilder()
16 : payload_(new em::ChromeDeviceSettingsProto()) { 16 : payload_(new em::ChromeDeviceSettingsProto()) {
17 policy_data().set_policy_type(dm_protocol::kChromeDevicePolicyType); 17 policy_data().set_policy_type(dm_protocol::kChromeDevicePolicyType);
18 } 18 }
19 19
20 // Have the instantiation compiled into the module. 20 // Have the instantiation compiled into the module.
21 template class TypedPolicyBuilder<em::ChromeDeviceSettingsProto>; 21 template class TypedPolicyBuilder<em::ChromeDeviceSettingsProto>;
22 22
23 } // namespace policy 23 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_policy_builder.h ('k') | chrome/browser/chromeos/policy/device_status_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698