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

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

Issue 14843009: Wire the device requisition parameter for enterprise enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock Created 7 years, 7 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/policy/enrollment_handler_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
index 64fcccfef15b15b9fdc5c11cc46a6af04a6398d3..b5c1dfc1708d03047a4d5ab3e31b31f5c682c038 100644
--- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
+++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
@@ -36,6 +36,7 @@ EnrollmentHandlerChromeOS::EnrollmentHandlerChromeOS(
const std::string& auth_token,
const std::string& client_id,
bool is_auto_enrollment,
+ const std::string& requisition,
const AllowedDeviceModes& allowed_device_modes,
const EnrollmentCallback& completion_callback)
: store_(store),
@@ -44,6 +45,7 @@ EnrollmentHandlerChromeOS::EnrollmentHandlerChromeOS(
auth_token_(auth_token),
client_id_(client_id),
is_auto_enrollment_(is_auto_enrollment),
+ requisition_(requisition),
allowed_device_modes_(allowed_device_modes),
completion_callback_(completion_callback),
device_mode_(DEVICE_MODE_NOT_SET),
@@ -179,7 +181,8 @@ void EnrollmentHandlerChromeOS::AttemptRegistration() {
if (store_->is_initialized()) {
enrollment_step_ = STEP_REGISTRATION;
client_->Register(em::DeviceRegisterRequest::DEVICE,
- auth_token_, client_id_, is_auto_enrollment_);
+ auth_token_, client_id_, is_auto_enrollment_,
+ requisition_);
}
}

Powered by Google App Engine
This is Rietveld 408576698