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

Unified Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen.h

Issue 390443006: Support for remote enrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bartfab feedback Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/enrollment/enrollment_screen.h
diff --git a/chrome/browser/chromeos/login/enrollment/enrollment_screen.h b/chrome/browser/chromeos/login/enrollment/enrollment_screen.h
index 0002d88d161bd205a26bd3f671d4d027467bd6f0..4ec958cbb05d88a87f139539afe84d89a1488ccb 100644
--- a/chrome/browser/chromeos/login/enrollment/enrollment_screen.h
+++ b/chrome/browser/chromeos/login/enrollment/enrollment_screen.h
@@ -32,7 +32,8 @@ class EnrollmentScreen
void SetParameters(EnrollmentScreenActor::EnrollmentMode enrollment_mode,
const std::string& management_domain,
- const std::string& enrollment_user);
+ const std::string& enrollment_user,
+ const std::string& auth_token);
// WizardScreen implementation:
virtual void PrepareToShow() OVERRIDE;
@@ -62,6 +63,9 @@ class EnrollmentScreen
// Kicks off the policy infrastructure to register with the service.
void RegisterForDevicePolicy(const std::string& token);
+ // Sends an enrollment access token to a remote device.
+ void SendEnrollmentAuthToken(const std::string& token);
+
// Handles enrollment completion. Logs a UMA sample and requests the actor to
// show the specified enrollment status.
void ReportEnrollmentStatus(policy::EnrollmentStatus status);
@@ -92,6 +96,9 @@ class EnrollmentScreen
EnrollmentScreenActor::EnrollmentMode enrollment_mode_;
bool enrollment_failed_once_;
std::string user_;
+ // TODO(achuith): Replace this with a boolean sent_auth_token_ instead.
+ // crbug.com/403178.
+ std::string auth_token_;
int lockbox_init_duration_;
base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698