| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 bool uma_enabled = | 447 bool uma_enabled = |
| 448 OptionsUtil::ResolveMetricsReportingEnabled(usage_statistics_reporting_); | 448 OptionsUtil::ResolveMetricsReportingEnabled(usage_statistics_reporting_); |
| 449 | 449 |
| 450 content::NotificationService::current()->Notify( | 450 content::NotificationService::current()->Notify( |
| 451 chrome::NOTIFICATION_WIZARD_EULA_ACCEPTED, | 451 chrome::NOTIFICATION_WIZARD_EULA_ACCEPTED, |
| 452 content::NotificationSource(content::Source<WizardController>(this)), | 452 content::NotificationSource(content::Source<WizardController>(this)), |
| 453 content::NotificationService::NoDetails()); | 453 content::NotificationService::NoDetails()); |
| 454 | 454 |
| 455 CrosSettings::Get()->SetBoolean(kStatsReportingPref, uma_enabled); | 455 CrosSettings::Get()->SetBoolean(kStatsReportingPref, uma_enabled); |
| 456 if (uma_enabled) { | 456 if (uma_enabled) { |
| 457 #if defined(USE_LINUX_BREAKPAD) | 457 #if defined(USE_LINUX_BREAKPAD) && defined(GOOGLE_CHROME_BUILD) |
| 458 // The crash reporter initialization needs IO to complete. | 458 // The crash reporter initialization needs IO to complete. |
| 459 base::ThreadRestrictions::ScopedAllowIO allow_io; | 459 base::ThreadRestrictions::ScopedAllowIO allow_io; |
| 460 InitCrashReporter(); | 460 InitCrashReporter(); |
| 461 #endif | 461 #endif |
| 462 } | 462 } |
| 463 | 463 |
| 464 if (skip_update_enroll_after_eula_) { | 464 if (skip_update_enroll_after_eula_) { |
| 465 PerformPostEulaActions(); | 465 PerformPostEulaActions(); |
| 466 PerformPostUpdateActions(); | 466 PerformPostUpdateActions(); |
| 467 ShowEnterpriseEnrollmentScreen(); | 467 ShowEnterpriseEnrollmentScreen(); |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 return zero_delay_enabled_; | 821 return zero_delay_enabled_; |
| 822 } | 822 } |
| 823 | 823 |
| 824 // static | 824 // static |
| 825 void WizardController::SetZeroDelays() { | 825 void WizardController::SetZeroDelays() { |
| 826 kShowDelayMs = 0; | 826 kShowDelayMs = 0; |
| 827 zero_delay_enabled_ = true; | 827 zero_delay_enabled_ = true; |
| 828 } | 828 } |
| 829 | 829 |
| 830 } // namespace chromeos | 830 } // namespace chromeos |
| OLD | NEW |