| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" | 5 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 actor_->ShowFatalEnrollmentError(); | 179 actor_->ShowFatalEnrollmentError(); |
| 180 return; | 180 return; |
| 181 } | 181 } |
| 182 | 182 |
| 183 connector->ScheduleServiceInitialization(0); | 183 connector->ScheduleServiceInitialization(0); |
| 184 registrar_.reset(new policy::CloudPolicySubsystem::ObserverRegistrar( | 184 registrar_.reset(new policy::CloudPolicySubsystem::ObserverRegistrar( |
| 185 connector->device_cloud_policy_subsystem(), this)); | 185 connector->device_cloud_policy_subsystem(), this)); |
| 186 | 186 |
| 187 // Push the credentials to the policy infrastructure. It'll start enrollment | 187 // Push the credentials to the policy infrastructure. It'll start enrollment |
| 188 // and notify us of progress through CloudPolicySubsystem::Observer. | 188 // and notify us of progress through CloudPolicySubsystem::Observer. |
| 189 connector->RegisterForDevicePolicy(user_, token); | 189 connector->RegisterForDevicePolicy(user_, token, is_auto_enrollment_); |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace chromeos | 192 } // namespace chromeos |
| OLD | NEW |