| 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 // ChromiumOS builds would go though this code path too. | 727 // ChromiumOS builds would go though this code path too. |
| 728 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( | 728 NetworkHandler::Get()->network_state_handler()->SetCheckPortalList( |
| 729 NetworkStateHandler::kDefaultCheckPortalList); | 729 NetworkStateHandler::kDefaultCheckPortalList); |
| 730 host_->GetAutoEnrollmentController()->Start(); | 730 host_->GetAutoEnrollmentController()->Start(); |
| 731 host_->PrewarmAuthentication(); | 731 host_->PrewarmAuthentication(); |
| 732 NetworkPortalDetector::Get()->Enable(true); | 732 NetworkPortalDetector::Get()->Enable(true); |
| 733 } | 733 } |
| 734 | 734 |
| 735 void WizardController::PerformOOBECompletedActions() { | 735 void WizardController::PerformOOBECompletedActions() { |
| 736 StartupUtils::MarkOobeCompleted(); | 736 StartupUtils::MarkOobeCompleted(); |
| 737 UMA_HISTOGRAM_COUNTS_100( |
| 738 "HIDDetection.TimesDialogShownPerOOBECompleted", |
| 739 GetLocalState()->GetInteger(prefs::kTimesHIDDialogShown)); |
| 740 GetLocalState()->ClearPref(prefs::kTimesHIDDialogShown); |
| 737 } | 741 } |
| 738 | 742 |
| 739 void WizardController::SetCurrentScreen(WizardScreen* new_current) { | 743 void WizardController::SetCurrentScreen(WizardScreen* new_current) { |
| 740 SetCurrentScreenSmooth(new_current, false); | 744 SetCurrentScreenSmooth(new_current, false); |
| 741 } | 745 } |
| 742 | 746 |
| 743 void WizardController::ShowCurrentScreen() { | 747 void WizardController::ShowCurrentScreen() { |
| 744 // ShowCurrentScreen may get called by smooth_show_timer_ even after | 748 // ShowCurrentScreen may get called by smooth_show_timer_ even after |
| 745 // flow has been switched to sign in screen (ExistingUserController). | 749 // flow has been switched to sign in screen (ExistingUserController). |
| 746 if (!oobe_display_) | 750 if (!oobe_display_) |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 // cancelled on destruction. | 1092 // cancelled on destruction. |
| 1089 GetTimezoneProvider()->RequestTimezone( | 1093 GetTimezoneProvider()->RequestTimezone( |
| 1090 position, | 1094 position, |
| 1091 false, // sensor | 1095 false, // sensor |
| 1092 timeout - elapsed, | 1096 timeout - elapsed, |
| 1093 base::Bind(&WizardController::OnTimezoneResolved, | 1097 base::Bind(&WizardController::OnTimezoneResolved, |
| 1094 base::Unretained(this))); | 1098 base::Unretained(this))); |
| 1095 } | 1099 } |
| 1096 | 1100 |
| 1097 } // namespace chromeos | 1101 } // namespace chromeos |
| OLD | NEW |