| Index: chrome/browser/policy/auto_enrollment_client.cc
|
| ===================================================================
|
| --- chrome/browser/policy/auto_enrollment_client.cc (revision 150390)
|
| +++ chrome/browser/policy/auto_enrollment_client.cc (working copy)
|
| @@ -111,12 +111,15 @@
|
| // 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 = BrowserPolicyConnector::GetDeviceManagementUrl();
|
| + std::string url =
|
| + command_line->GetSwitchValueASCII(switches::kDeviceManagementUrl);
|
| if (!url.empty()) {
|
| service = new DeviceManagementService(url);
|
| service->ScheduleInitialization(0);
|
|
|