Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 9838033: Upstream native crash handling changes for Android. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: In response to comments. Lots of linux to posix Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_linux.h"
Yaron 2012/04/03 23:54:20 Update this throughout
carlosvaldivia 2012/04/04 20:52:34 Done.
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698