| OLD | NEW |
| 1 // Copyright (c) 2012 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/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 onc_spec, base::Bind(&base::DoNothing), base::Bind(&base::DoNothing)); | 1279 onc_spec, base::Bind(&base::DoNothing), base::Bind(&base::DoNothing)); |
| 1280 } else { | 1280 } else { |
| 1281 network_screen->CreateAndConnectNetworkFromOnc( | 1281 network_screen->CreateAndConnectNetworkFromOnc( |
| 1282 onc_spec, base::Bind(&WizardController::OnSetHostNetworkSuccessful, | 1282 onc_spec, base::Bind(&WizardController::OnSetHostNetworkSuccessful, |
| 1283 weak_factory_.GetWeakPtr()), | 1283 weak_factory_.GetWeakPtr()), |
| 1284 base::Bind(&WizardController::OnSetHostNetworkFailed, | 1284 base::Bind(&WizardController::OnSetHostNetworkFailed, |
| 1285 weak_factory_.GetWeakPtr())); | 1285 weak_factory_.GetWeakPtr())); |
| 1286 } | 1286 } |
| 1287 } | 1287 } |
| 1288 | 1288 |
| 1289 void WizardController::RebootHostRequested() { |
| 1290 DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart(); |
| 1291 } |
| 1292 |
| 1289 void WizardController::OnEnableDebuggingScreenRequested() { | 1293 void WizardController::OnEnableDebuggingScreenRequested() { |
| 1290 if (!login_screen_started()) | 1294 if (!login_screen_started()) |
| 1291 AdvanceToScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING); | 1295 AdvanceToScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING); |
| 1292 } | 1296 } |
| 1293 | 1297 |
| 1294 void WizardController::OnAccessibilityStatusChanged( | 1298 void WizardController::OnAccessibilityStatusChanged( |
| 1295 const AccessibilityStatusEventDetails& details) { | 1299 const AccessibilityStatusEventDetails& details) { |
| 1296 enum AccessibilityNotificationType type = details.notification_type; | 1300 enum AccessibilityNotificationType type = details.notification_type; |
| 1297 if (type == ACCESSIBILITY_MANAGER_SHUTDOWN) { | 1301 if (type == ACCESSIBILITY_MANAGER_SHUTDOWN) { |
| 1298 accessibility_subscription_.reset(); | 1302 accessibility_subscription_.reset(); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1547 SetCurrentScreen(screen); | 1551 SetCurrentScreen(screen); |
| 1548 } | 1552 } |
| 1549 | 1553 |
| 1550 AutoEnrollmentController* WizardController::GetAutoEnrollmentController() { | 1554 AutoEnrollmentController* WizardController::GetAutoEnrollmentController() { |
| 1551 if (!auto_enrollment_controller_) | 1555 if (!auto_enrollment_controller_) |
| 1552 auto_enrollment_controller_ = base::MakeUnique<AutoEnrollmentController>(); | 1556 auto_enrollment_controller_ = base::MakeUnique<AutoEnrollmentController>(); |
| 1553 return auto_enrollment_controller_.get(); | 1557 return auto_enrollment_controller_.get(); |
| 1554 } | 1558 } |
| 1555 | 1559 |
| 1556 } // namespace chromeos | 1560 } // namespace chromeos |
| OLD | NEW |