| 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 <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 VLOG(1) << "Starting OOBE wizard with screen: " << first_screen_name; | 185 VLOG(1) << "Starting OOBE wizard with screen: " << first_screen_name; |
| 186 first_screen_name_ = first_screen_name; | 186 first_screen_name_ = first_screen_name; |
| 187 screen_parameters_ = screen_parameters.Pass(); | 187 screen_parameters_ = screen_parameters.Pass(); |
| 188 | 188 |
| 189 bool oobe_complete = StartupUtils::IsOobeCompleted(); | 189 bool oobe_complete = StartupUtils::IsOobeCompleted(); |
| 190 if (!oobe_complete || first_screen_name == kOutOfBoxScreenName) { | 190 if (!oobe_complete || first_screen_name == kOutOfBoxScreenName) { |
| 191 is_out_of_box_ = true; | 191 is_out_of_box_ = true; |
| 192 | 192 |
| 193 bool keyboard_driven_oobe = false; | 193 bool keyboard_driven_oobe = false; |
| 194 system::StatisticsProvider::GetInstance()->GetMachineFlag( | 194 system::StatisticsProvider::GetInstance()->GetMachineFlag( |
| 195 chromeos::kOemKeyboardDrivenOobeKey, &keyboard_driven_oobe); | 195 chromeos::system::kOemKeyboardDrivenOobeKey, |
| 196 &keyboard_driven_oobe); |
| 196 if (keyboard_driven_oobe) { | 197 if (keyboard_driven_oobe) { |
| 197 focus_ring_controller_.reset(new FocusRingController); | 198 focus_ring_controller_.reset(new FocusRingController); |
| 198 focus_ring_controller_->SetVisible(true); | 199 focus_ring_controller_->SetVisible(true); |
| 199 } | 200 } |
| 200 } | 201 } |
| 201 | 202 |
| 202 AdvanceToScreen(first_screen_name); | 203 AdvanceToScreen(first_screen_name); |
| 203 content::NotificationService::current()->Notify( | 204 content::NotificationService::current()->Notify( |
| 204 chrome::NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN, | 205 chrome::NOTIFICATION_WIZARD_FIRST_SCREEN_SHOWN, |
| 205 content::NotificationService::AllSources(), | 206 content::NotificationService::AllSources(), |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 return g_browser_process->browser_policy_connector()-> | 867 return g_browser_process->browser_policy_connector()-> |
| 867 GetDeviceCloudPolicyManager()->ShouldAutoStartEnrollment(); | 868 GetDeviceCloudPolicyManager()->ShouldAutoStartEnrollment(); |
| 868 } | 869 } |
| 869 | 870 |
| 870 bool WizardController::CanExitEnrollment() const { | 871 bool WizardController::CanExitEnrollment() const { |
| 871 return g_browser_process->browser_policy_connector()-> | 872 return g_browser_process->browser_policy_connector()-> |
| 872 GetDeviceCloudPolicyManager()->CanExitEnrollment(); | 873 GetDeviceCloudPolicyManager()->CanExitEnrollment(); |
| 873 } | 874 } |
| 874 | 875 |
| 875 } // namespace chromeos | 876 } // namespace chromeos |
| OLD | NEW |