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

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: unit tests refactored 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 content::NotificationService::current()->Notify(
447 chrome::NOTIFICATION_WIZARD_EULA_ACCEPTED,
448 content::NotificationService::AllSources(),
Ilya Sherman 2012/09/11 22:51:27 nit: Please specify a source rather than using All
SteveT 2012/09/12 17:56:10 I knew I would get in trouble for this :) - Unfort
Ilya Sherman 2012/09/12 20:30:01 It looks like this is a new notification that you'
SteveT 2012/09/14 20:25:09 Done.
449 content::NotificationService::NoDetails());
450
445 CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled); 451 CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled);
446 if (enabled) { 452 if (enabled) {
447 #if defined(USE_LINUX_BREAKPAD) 453 #if defined(USE_LINUX_BREAKPAD)
448 // The crash reporter initialization needs IO to complete. 454 // The crash reporter initialization needs IO to complete.
449 base::ThreadRestrictions::ScopedAllowIO allow_io; 455 base::ThreadRestrictions::ScopedAllowIO allow_io;
450 InitCrashReporter(); 456 InitCrashReporter();
451 #endif 457 #endif
452 } 458 }
453 459
454 if (skip_update_enroll_after_eula_) { 460 if (skip_update_enroll_after_eula_) {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 return zero_delay_enabled_; 804 return zero_delay_enabled_;
799 } 805 }
800 806
801 // static 807 // static
802 void WizardController::SetZeroDelays() { 808 void WizardController::SetZeroDelays() {
803 kShowDelayMs = 0; 809 kShowDelayMs = 0;
804 zero_delay_enabled_ = true; 810 zero_delay_enabled_ = true;
805 } 811 }
806 812
807 } // namespace chromeos 813 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698