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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc

Issue 2382833002: Rename policy::EnterpriseInstallAttributes to chromeos::InstallAttributes. (Closed)
Patch Set: Add missing #includes. Created 4 years, 2 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_initializer.h" 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_initializer.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/sequenced_task_runner.h" 14 #include "base/sequenced_task_runner.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/chromeos/attestation/attestation_ca_client.h" 17 #include "chrome/browser/chromeos/attestation/attestation_ca_client.h"
18 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" 18 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
19 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" 19 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h"
20 #include "chrome/browser/chromeos/policy/device_status_collector.h" 20 #include "chrome/browser/chromeos/policy/device_status_collector.h"
21 #include "chrome/browser/chromeos/policy/enrollment_config.h" 21 #include "chrome/browser/chromeos/policy/enrollment_config.h"
22 #include "chrome/browser/chromeos/policy/enrollment_handler_chromeos.h" 22 #include "chrome/browser/chromeos/policy/enrollment_handler_chromeos.h"
23 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h" 23 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h"
24 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
25 #include "chrome/browser/chromeos/policy/server_backed_device_state.h" 24 #include "chrome/browser/chromeos/policy/server_backed_device_state.h"
25 #include "chrome/browser/chromeos/settings/install_attributes.h"
26 #include "chrome/common/chrome_content_client.h" 26 #include "chrome/common/chrome_content_client.h"
27 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
28 #include "chromeos/attestation/attestation.pb.h" 28 #include "chromeos/attestation/attestation.pb.h"
29 #include "chromeos/attestation/attestation_flow.h" 29 #include "chromeos/attestation/attestation_flow.h"
30 #include "chromeos/chromeos_switches.h" 30 #include "chromeos/chromeos_switches.h"
31 #include "chromeos/cryptohome/async_method_caller.h" 31 #include "chromeos/cryptohome/async_method_caller.h"
32 #include "chromeos/cryptohome/cryptohome_parameters.h" 32 #include "chromeos/cryptohome/cryptohome_parameters.h"
33 #include "chromeos/dbus/dbus_thread_manager.h" 33 #include "chromeos/dbus/dbus_thread_manager.h"
34 #include "chromeos/system/statistics_provider.h" 34 #include "chromeos/system/statistics_provider.h"
35 #include "components/policy/core/common/cloud/cloud_policy_core.h" 35 #include "components/policy/core/common/cloud/cloud_policy_core.h"
(...skipping 16 matching lines...) Expand all
52 52
53 return value; 53 return value;
54 } 54 }
55 55
56 } // namespace 56 } // namespace
57 57
58 DeviceCloudPolicyInitializer::DeviceCloudPolicyInitializer( 58 DeviceCloudPolicyInitializer::DeviceCloudPolicyInitializer(
59 PrefService* local_state, 59 PrefService* local_state,
60 DeviceManagementService* enterprise_service, 60 DeviceManagementService* enterprise_service,
61 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, 61 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner,
62 EnterpriseInstallAttributes* install_attributes, 62 chromeos::InstallAttributes* install_attributes,
63 ServerBackedStateKeysBroker* state_keys_broker, 63 ServerBackedStateKeysBroker* state_keys_broker,
64 DeviceCloudPolicyStoreChromeOS* device_store, 64 DeviceCloudPolicyStoreChromeOS* device_store,
65 DeviceCloudPolicyManagerChromeOS* manager, 65 DeviceCloudPolicyManagerChromeOS* manager,
66 cryptohome::AsyncMethodCaller* async_method_caller, 66 cryptohome::AsyncMethodCaller* async_method_caller,
67 std::unique_ptr<chromeos::attestation::AttestationFlow> attestation_flow) 67 std::unique_ptr<chromeos::attestation::AttestationFlow> attestation_flow)
68 : local_state_(local_state), 68 : local_state_(local_state),
69 enterprise_service_(enterprise_service), 69 enterprise_service_(enterprise_service),
70 background_task_runner_(background_task_runner), 70 background_task_runner_(background_task_runner),
71 install_attributes_(install_attributes), 71 install_attributes_(install_attributes),
72 state_keys_broker_(state_keys_broker), 72 state_keys_broker_(state_keys_broker),
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 if (success && (success = att_signed_data.ParseFromString(signed_data))) { 321 if (success && (success = att_signed_data.ParseFromString(signed_data))) {
322 em_signed_data.set_data(att_signed_data.data()); 322 em_signed_data.set_data(att_signed_data.data());
323 em_signed_data.set_signature(att_signed_data.signature()); 323 em_signed_data.set_signature(att_signed_data.signature());
324 em_signed_data.set_extra_data_bytes(att_signed_data.data().size() - 324 em_signed_data.set_extra_data_bytes(att_signed_data.data().size() -
325 data.size()); 325 data.size());
326 } 326 }
327 callback.Run(success, em_signed_data); 327 callback.Run(success, em_signed_data);
328 } 328 }
329 329
330 } // namespace policy 330 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698