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

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

Issue 10917120: Activate the VariationsService for ChromeOS and ensure that it does not ping the server until the E… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: init Created 8 years, 3 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
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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 void WizardController::OnUpdateCompleted() { 436 void WizardController::OnUpdateCompleted() {
437 OnOOBECompleted(); 437 OnOOBECompleted();
438 } 438 }
439 439
440 void WizardController::OnEulaAccepted() { 440 void WizardController::OnEulaAccepted() {
441 time_eula_accepted_ = base::Time::Now(); 441 time_eula_accepted_ = base::Time::Now();
442 MarkEulaAccepted(); 442 MarkEulaAccepted();
443 bool enabled = 443 bool enabled =
444 OptionsUtil::ResolveMetricsReportingEnabled(usage_statistics_reporting_); 444 OptionsUtil::ResolveMetricsReportingEnabled(usage_statistics_reporting_);
445
446 // Inform observers of this event before we proceed.
447 FOR_EACH_OBSERVER(Observer, observer_list_, OnEulaAccepted());
448
445 CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled); 449 CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled);
446 if (enabled) { 450 if (enabled) {
447 #if defined(USE_LINUX_BREAKPAD) 451 #if defined(USE_LINUX_BREAKPAD)
448 // The crash reporter initialization needs IO to complete. 452 // The crash reporter initialization needs IO to complete.
449 base::ThreadRestrictions::ScopedAllowIO allow_io; 453 base::ThreadRestrictions::ScopedAllowIO allow_io;
450 InitCrashReporter(); 454 InitCrashReporter();
451 #endif 455 #endif
452 } 456 }
453 457
454 if (skip_update_enroll_after_eula_) { 458 if (skip_update_enroll_after_eula_) {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 return zero_delay_enabled_; 802 return zero_delay_enabled_;
799 } 803 }
800 804
801 // static 805 // static
802 void WizardController::SetZeroDelays() { 806 void WizardController::SetZeroDelays() {
803 kShowDelayMs = 0; 807 kShowDelayMs = 0;
804 zero_delay_enabled_ = true; 808 zero_delay_enabled_ = true;
805 } 809 }
806 810
807 } // namespace chromeos 811 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698