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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h

Issue 2371213002: Refactor: Inject StatisticsProvider as a dependency of DeviceCloudPolicyInitializer. (Closed)
Patch Set: Address Maksim's comments. 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 (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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // If set, the device will start the enterprise enrollment OOBE. 81 // If set, the device will start the enterprise enrollment OOBE.
82 void SetDeviceEnrollmentAutoStart(); 82 void SetDeviceEnrollmentAutoStart();
83 83
84 // CloudPolicyManager: 84 // CloudPolicyManager:
85 void Shutdown() override; 85 void Shutdown() override;
86 86
87 // Pref registration helper. 87 // Pref registration helper.
88 static void RegisterPrefs(PrefRegistrySimple* registry); 88 static void RegisterPrefs(PrefRegistrySimple* registry);
89 89
90 // Returns the device serial number, or an empty string if not available.
91 static std::string GetMachineID();
92
93 // Returns the machine model, or an empty string if not available.
94 static std::string GetMachineModel();
95
96 // Returns the mode for using zero-touch enrollment. 90 // Returns the mode for using zero-touch enrollment.
97 static ZeroTouchEnrollmentMode GetZeroTouchEnrollmentMode(); 91 static ZeroTouchEnrollmentMode GetZeroTouchEnrollmentMode();
98 92
99 // Returns the robot 'email address' associated with the device robot 93 // Returns the robot 'email address' associated with the device robot
100 // account (sometimes called a service account) associated with this device 94 // account (sometimes called a service account) associated with this device
101 // during enterprise enrollment. 95 // during enterprise enrollment.
102 std::string GetRobotAccountId(); 96 std::string GetRobotAccountId();
103 97
104 // Starts the connection via |client_to_connect|. 98 // Starts the connection via |client_to_connect|.
105 void StartConnection(std::unique_ptr<CloudPolicyClient> client_to_connect, 99 void StartConnection(std::unique_ptr<CloudPolicyClient> client_to_connect,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 attestation_policy_observer_; 155 attestation_policy_observer_;
162 156
163 base::ObserverList<Observer, true> observers_; 157 base::ObserverList<Observer, true> observers_;
164 158
165 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); 159 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS);
166 }; 160 };
167 161
168 } // namespace policy 162 } // namespace policy
169 163
170 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _ 164 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698