device_policy_builder.cc revision a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7
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 3// found in the LICENSE file. 4 5#include "chrome/browser/chromeos/policy/device_policy_builder.h" 6 7#include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" 8#include "components/policy/core/common/cloud/cloud_policy_constants.h" 9 10namespace em = enterprise_management; 11 12namespace policy { 13 14template<> 15TypedPolicyBuilder<em::ChromeDeviceSettingsProto>::TypedPolicyBuilder() 16 : payload_(new em::ChromeDeviceSettingsProto()) { 17 policy_data().set_policy_type(dm_protocol::kChromeDevicePolicyType); 18} 19 20// Have the instantiation compiled into the module. 21template class TypedPolicyBuilder<em::ChromeDeviceSettingsProto>; 22 23} // namespace policy 24