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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "chrome/browser/prefs/pref_service.h" | 42 #include "chrome/browser/prefs/pref_service.h" |
43 #include "chrome/browser/profiles/profile_manager.h" | 43 #include "chrome/browser/profiles/profile_manager.h" |
44 #include "chrome/browser/ui/options/options_util.h" | 44 #include "chrome/browser/ui/options/options_util.h" |
45 #include "chrome/common/chrome_notification_types.h" | 45 #include "chrome/common/chrome_notification_types.h" |
46 #include "chrome/common/pref_names.h" | 46 #include "chrome/common/pref_names.h" |
47 #include "content/public/browser/notification_service.h" | 47 #include "content/public/browser/notification_service.h" |
48 #include "content/public/browser/notification_types.h" | 48 #include "content/public/browser/notification_types.h" |
49 #include "ui/base/accelerators/accelerator.h" | 49 #include "ui/base/accelerators/accelerator.h" |
50 #include "ui/base/l10n/l10n_util.h" | 50 #include "ui/base/l10n/l10n_util.h" |
51 | 51 |
52 #if defined(USE_LINUX_BREAKPAD) | 52 #if defined(USE_POSIX_BREAKPAD) |
53 #include "chrome/app/breakpad_linux.h" | 53 #include "chrome/app/breakpad_posix.h" |
54 #endif | 54 #endif |
55 | 55 |
56 using content::BrowserThread; | 56 using content::BrowserThread; |
57 | 57 |
58 namespace { | 58 namespace { |
59 | 59 |
60 // A boolean pref of the EULA accepted flag. | 60 // A boolean pref of the EULA accepted flag. |
61 const char kEulaAccepted[] = "EulaAccepted"; | 61 const char kEulaAccepted[] = "EulaAccepted"; |
62 | 62 |
63 // A string pref with initial locale set in VPD or manifest. | 63 // A string pref with initial locale set in VPD or manifest. |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 OnOOBECompleted(); | 398 OnOOBECompleted(); |
399 } | 399 } |
400 | 400 |
401 void WizardController::OnEulaAccepted() { | 401 void WizardController::OnEulaAccepted() { |
402 time_eula_accepted_ = base::Time::Now(); | 402 time_eula_accepted_ = base::Time::Now(); |
403 MarkEulaAccepted(); | 403 MarkEulaAccepted(); |
404 bool enabled = | 404 bool enabled = |
405 OptionsUtil::ResolveMetricsReportingEnabled(usage_statistics_reporting_); | 405 OptionsUtil::ResolveMetricsReportingEnabled(usage_statistics_reporting_); |
406 CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled); | 406 CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled); |
407 if (enabled) { | 407 if (enabled) { |
408 #if defined(USE_LINUX_BREAKPAD) | 408 #if defined(USE_POSIX_BREAKPAD) |
409 // The crash reporter initialization needs IO to complete. | 409 // The crash reporter initialization needs IO to complete. |
410 base::ThreadRestrictions::ScopedAllowIO allow_io; | 410 base::ThreadRestrictions::ScopedAllowIO allow_io; |
411 InitCrashReporter(); | 411 InitCrashReporter(); |
412 #endif | 412 #endif |
413 } | 413 } |
414 | 414 |
415 InitiateOOBEUpdate(); | 415 InitiateOOBEUpdate(); |
416 } | 416 } |
417 | 417 |
418 void WizardController::OnUpdateErrorCheckingForUpdate() { | 418 void WizardController::OnUpdateErrorCheckingForUpdate() { |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 | 740 |
741 bool WizardController::usage_statistics_reporting() const { | 741 bool WizardController::usage_statistics_reporting() const { |
742 return usage_statistics_reporting_; | 742 return usage_statistics_reporting_; |
743 } | 743 } |
744 | 744 |
745 void WizardController::SetZeroDelays() { | 745 void WizardController::SetZeroDelays() { |
746 kShowDelayMs = 0; | 746 kShowDelayMs = 0; |
747 } | 747 } |
748 | 748 |
749 } // namespace chromeos | 749 } // namespace chromeos |
OLD | NEW |