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

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

Powered by Google App Engine
This is Rietveld 408576698