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

Unified Diff: chrome/browser/chromeos/policy/enrollment_handler_chromeos.h

Issue 769703003: SetManagementSettings() is moved to OwnerSettingsServiceChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
index 026f544cba5826ab1de13f30e7ac2e0bf97f0a7d..f0bd436864b4854cf9680a49eded751cf5b81cc8 100644
--- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
+++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
@@ -27,6 +27,7 @@ class SequencedTaskRunner;
namespace chromeos {
class DeviceSettingsService;
+class OwnerSettingsServiceChromeOS;
}
namespace policy {
@@ -65,6 +66,7 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
EnterpriseInstallAttributes* install_attributes,
ServerBackedStateKeysBroker* state_keys_broker,
chromeos::DeviceSettingsService* device_settings_service,
+ chromeos::OwnerSettingsServiceChromeOS* owner_settings_service,
scoped_ptr<CloudPolicyClient> client,
scoped_refptr<base::SequencedTaskRunner> background_task_runner,
const std::string& auth_token,
@@ -136,9 +138,9 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
// enrollment.
void StartLockDevice();
- // Checks the status after SetManagementSettings() is done. Proceeds to
- // robot auth code storing if successful.
- void HandleSetManagementSettingsDone();
+ // Called after SetManagementSettings() is done. Proceeds to robot
+ // auth code storing if successful.
+ void HandleSetManagementSettingsDone(bool success);
// Handle callback from InstallAttributes::LockDevice() and retry on failure.
void HandleLockDeviceResult(
@@ -160,6 +162,7 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
EnterpriseInstallAttributes* install_attributes_;
ServerBackedStateKeysBroker* state_keys_broker_;
chromeos::DeviceSettingsService* device_settings_service_;
+ chromeos::OwnerSettingsServiceChromeOS* owner_settings_service_;
scoped_ptr<CloudPolicyClient> client_;
scoped_refptr<base::SequencedTaskRunner> background_task_runner_;
scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_;

Powered by Google App Engine
This is Rietveld 408576698