| Index: chrome/browser/policy/auto_enrollment_client.cc
|
| diff --git a/chrome/browser/policy/auto_enrollment_client.cc b/chrome/browser/policy/auto_enrollment_client.cc
|
| index eabe10ebd47d83d48ca5ed63c6f572baecebfddd..c6ca989d7c5018d6415c3155b261bad63f09597f 100644
|
| --- a/chrome/browser/policy/auto_enrollment_client.cc
|
| +++ b/chrome/browser/policy/auto_enrollment_client.cc
|
| @@ -111,15 +111,12 @@ bool AutoEnrollmentClient::IsDisabled() {
|
| // static
|
| AutoEnrollmentClient* AutoEnrollmentClient::Create(
|
| const base::Closure& completion_callback) {
|
| - CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| -
|
| // The client won't do anything if |service| is NULL.
|
| DeviceManagementService* service = NULL;
|
| if (IsDisabled()) {
|
| VLOG(1) << "Auto-enrollment is disabled";
|
| } else {
|
| - std::string url =
|
| - command_line->GetSwitchValueASCII(switches::kDeviceManagementUrl);
|
| + std::string url = BrowserPolicyConnector::GetDeviceManagementUrl();
|
| if (!url.empty()) {
|
| service = new DeviceManagementService(url);
|
| service->ScheduleInitialization(0);
|
|
|