| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/auto_enrollment_controller.h" | 5 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 retrieve_device_state, | 200 retrieve_device_state, |
| 201 power_initial, | 201 power_initial, |
| 202 power_limit)); | 202 power_limit)); |
| 203 | 203 |
| 204 VLOG(1) << "Starting auto-enrollment client."; | 204 VLOG(1) << "Starting auto-enrollment client."; |
| 205 client_->Start(); | 205 client_->Start(); |
| 206 } | 206 } |
| 207 | 207 |
| 208 void AutoEnrollmentController::UpdateState( | 208 void AutoEnrollmentController::UpdateState( |
| 209 policy::AutoEnrollmentState new_state) { | 209 policy::AutoEnrollmentState new_state) { |
| 210 VLOG(1) << "New state: " << new_state << "."; |
| 210 state_ = new_state; | 211 state_ = new_state; |
| 211 progress_callbacks_.Notify(state_); | 212 progress_callbacks_.Notify(state_); |
| 212 } | 213 } |
| 213 | 214 |
| 214 } // namespace chromeos | 215 } // namespace chromeos |
| OLD | NEW |