OLD | NEW |
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/device_cloud_policy_manager_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/port.h" | 10 #include "base/port.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 chromeos::AutoEnrollmentController::MODE_FORCED_RE_ENROLLMENT; | 92 chromeos::AutoEnrollmentController::MODE_FORCED_RE_ENROLLMENT; |
93 } | 93 } |
94 | 94 |
95 } // namespace | 95 } // namespace |
96 | 96 |
97 DeviceCloudPolicyManagerChromeOS::DeviceCloudPolicyManagerChromeOS( | 97 DeviceCloudPolicyManagerChromeOS::DeviceCloudPolicyManagerChromeOS( |
98 scoped_ptr<DeviceCloudPolicyStoreChromeOS> store, | 98 scoped_ptr<DeviceCloudPolicyStoreChromeOS> store, |
99 const scoped_refptr<base::SequencedTaskRunner>& task_runner, | 99 const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
100 ServerBackedStateKeysBroker* state_keys_broker) | 100 ServerBackedStateKeysBroker* state_keys_broker) |
101 : CloudPolicyManager( | 101 : CloudPolicyManager( |
102 PolicyNamespaceKey(dm_protocol::kChromeDevicePolicyType, | 102 dm_protocol::kChromeDevicePolicyType, |
103 std::string()), | |
104 store.get(), | 103 store.get(), |
105 task_runner, | 104 task_runner, |
106 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 105 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
107 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)), | 106 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)), |
108 device_store_(store.Pass()), | 107 device_store_(store.Pass()), |
109 state_keys_broker_(state_keys_broker), | 108 state_keys_broker_(state_keys_broker), |
110 local_state_(NULL) { | 109 local_state_(NULL) { |
111 } | 110 } |
112 | 111 |
113 DeviceCloudPolicyManagerChromeOS::~DeviceCloudPolicyManagerChromeOS() {} | 112 DeviceCloudPolicyManagerChromeOS::~DeviceCloudPolicyManagerChromeOS() {} |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 local_state_->SetBoolean( | 254 local_state_->SetBoolean( |
256 prefs::kDeviceEnrollmentCanExit, | 255 prefs::kDeviceEnrollmentCanExit, |
257 GetMachineFlag(chromeos::system::kOemCanExitEnterpriseEnrollmentKey, | 256 GetMachineFlag(chromeos::system::kOemCanExitEnterpriseEnrollmentKey, |
258 false)); | 257 false)); |
259 } | 258 } |
260 } | 259 } |
261 } | 260 } |
262 } | 261 } |
263 | 262 |
264 } // namespace policy | 263 } // namespace policy |
OLD | NEW |