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

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

Issue 975353002: Added OOBE Asset / Naming prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged with master Created 5 years, 8 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/enterprise_enrollment_helper_impl.h
diff --git a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.h b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.h
index 519f10251f4de625f6544e140f6d8eb90e81d021..4d5293d62e24b4b55bdb5756e9757334224998aa 100644
--- a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.h
+++ b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.h
@@ -42,6 +42,9 @@ class EnterpriseEnrollmentHelperImpl : public EnterpriseEnrollmentHelper,
void EnrollUsingAuthCode(const std::string& auth_code) override;
void EnrollUsingToken(const std::string& token) override;
void ClearAuth(const base::Closure& callback) override;
+ void GetDeviceAttributeUpdatePermission() override;
+ void UpdateDeviceAttributes(const std::string& asset_id,
+ const std::string& location) override;
private:
void DoEnrollUsingToken(const std::string& token);
@@ -54,6 +57,12 @@ class EnterpriseEnrollmentHelperImpl : public EnterpriseEnrollmentHelper,
// Handles completion of the enrollment attempt.
void OnEnrollmentFinished(policy::EnrollmentStatus status);
+ // Handles completion of the device attribute update permission request.
+ void OnDeviceAttributeUpdatePermission(bool granted);
+
+ // Handles completion of the device attribute update attempt.
+ void OnDeviceAttributeUploadCompleted(bool success);
+
void ReportAuthStatus(const GoogleServiceAuthError& error);
void ReportEnrollmentStatus(policy::EnrollmentStatus status);
@@ -64,6 +73,9 @@ class EnterpriseEnrollmentHelperImpl : public EnterpriseEnrollmentHelper,
// Overridden from BrowsingDataRemover::Observer:
void OnBrowsingDataRemoverDone() override;
+ // Gets oauth token, used during enterprise enrollment.
+ const std::string& GetOAuthToken();
+
const policy::EnrollmentConfig enrollment_config_;
const std::string enrolling_user_domain_;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698