| 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 // ChromiumOS builds would go though this code path too. | 703 // ChromiumOS builds would go though this code path too. |
| 704 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( | 704 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( |
| 705 NetworkStateHandler::kDefaultCheckPortalList); | 705 NetworkStateHandler::kDefaultCheckPortalList); |
| 706 host_->GetAutoEnrollmentController()->Start(); | 706 host_->GetAutoEnrollmentController()->Start(); |
| 707 host_->PrewarmAuthentication(); | 707 host_->PrewarmAuthentication(); |
| 708 NetworkPortalDetector::Get()->Enable(true); | 708 NetworkPortalDetector::Get()->Enable(true); |
| 709 } | 709 } |
| 710 | 710 |
| 711 void WizardController::PerformOOBECompletedActions() { | 711 void WizardController::PerformOOBECompletedActions() { |
| 712 StartupUtils::MarkOobeCompleted(); | 712 StartupUtils::MarkOobeCompleted(); |
| 713 UMA_HISTOGRAM_COUNTS_100( |
| 714 "HIDDetection.TimesDialogShownPerOOBECompleted", |
| 715 GetLocalState()->GetInteger(prefs::kTimesHIDDialogShown)); |
| 716 GetLocalState()->ClearPref(prefs::kTimesHIDDialogShown); |
| 713 } | 717 } |
| 714 | 718 |
| 715 void WizardController::SetCurrentScreen(WizardScreen* new_current) { | 719 void WizardController::SetCurrentScreen(WizardScreen* new_current) { |
| 716 SetCurrentScreenSmooth(new_current, false); | 720 SetCurrentScreenSmooth(new_current, false); |
| 717 } | 721 } |
| 718 | 722 |
| 719 void WizardController::ShowCurrentScreen() { | 723 void WizardController::ShowCurrentScreen() { |
| 720 // ShowCurrentScreen may get called by smooth_show_timer_ even after | 724 // ShowCurrentScreen may get called by smooth_show_timer_ even after |
| 721 // flow has been switched to sign in screen (ExistingUserController). | 725 // flow has been switched to sign in screen (ExistingUserController). |
| 722 if (!oobe_display_) | 726 if (!oobe_display_) |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 // cancelled on destruction. | 1064 // cancelled on destruction. |
| 1061 GetTimezoneProvider()->RequestTimezone( | 1065 GetTimezoneProvider()->RequestTimezone( |
| 1062 position, | 1066 position, |
| 1063 false, // sensor | 1067 false, // sensor |
| 1064 timeout - elapsed, | 1068 timeout - elapsed, |
| 1065 base::Bind(&WizardController::OnTimezoneResolved, | 1069 base::Bind(&WizardController::OnTimezoneResolved, |
| 1066 base::Unretained(this))); | 1070 base::Unretained(this))); |
| 1067 } | 1071 } |
| 1068 | 1072 |
| 1069 } // namespace chromeos | 1073 } // namespace chromeos |
| OLD | NEW |