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

Unified 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: asvit nit 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 53a9b0007fac28bb82fc4568c226ff920017e844..f8b7c184b1fb5eeabead3e9787bd64da8bc32bfa 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -45,6 +45,7 @@
#include "chrome/common/pref_names.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/l10n/l10n_util.h"
@@ -442,6 +443,12 @@ void WizardController::OnEulaAccepted() {
MarkEulaAccepted();
bool enabled =
OptionsUtil::ResolveMetricsReportingEnabled(usage_statistics_reporting_);
+
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_WIZARD_EULA_ACCEPTED,
+ content::NotificationSource(content::Source<WizardController>(this)),
+ content::NotificationService::NoDetails());
+
CrosSettings::Get()->SetBoolean(kStatsReportingPref, enabled);
if (enabled) {
#if defined(USE_LINUX_BREAKPAD)

Powered by Google App Engine
This is Rietveld 408576698