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_local_account_policy_service.h" | 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "chrome/browser/chromeos/policy/device_local_account_policy_store.h" | 9 #include "chrome/browser/chromeos/policy/device_local_account_policy_store.h" |
10 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | |
11 #include "chrome/browser/policy/cloud/cloud_policy_client.h" | 10 #include "chrome/browser/policy/cloud/cloud_policy_client.h" |
12 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 11 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
13 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" | 12 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" |
14 #include "chrome/browser/policy/cloud/device_management_service.h" | 13 #include "chrome/browser/policy/cloud/device_management_service.h" |
15 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | 14 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" |
| 15 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
16 #include "chromeos/dbus/session_manager_client.h" | 16 #include "chromeos/dbus/session_manager_client.h" |
17 #include "policy/policy_constants.h" | 17 #include "policy/policy_constants.h" |
18 | 18 |
19 namespace em = enterprise_management; | 19 namespace em = enterprise_management; |
20 | 20 |
21 namespace policy { | 21 namespace policy { |
22 | 22 |
23 DeviceLocalAccountPolicyBroker::DeviceLocalAccountPolicyBroker( | 23 DeviceLocalAccountPolicyBroker::DeviceLocalAccountPolicyBroker( |
24 scoped_ptr<DeviceLocalAccountPolicyStore> store) | 24 scoped_ptr<DeviceLocalAccountPolicyStore> store) |
25 : store_(store.Pass()), | 25 : store_(store.Pass()), |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 scoped_ptr<CloudPolicyClient> client( | 249 scoped_ptr<CloudPolicyClient> client( |
250 new CloudPolicyClient(std::string(), std::string(), | 250 new CloudPolicyClient(std::string(), std::string(), |
251 USER_AFFILIATION_MANAGED, | 251 USER_AFFILIATION_MANAGED, |
252 NULL, device_management_service_)); | 252 NULL, device_management_service_)); |
253 client->SetupRegistration(policy_data->request_token(), | 253 client->SetupRegistration(policy_data->request_token(), |
254 policy_data->device_id()); | 254 policy_data->device_id()); |
255 return client.Pass(); | 255 return client.Pass(); |
256 } | 256 } |
257 | 257 |
258 } // namespace policy | 258 } // namespace policy |
OLD | NEW |