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

Unified Diff: chrome/browser/chromeos/login/base_login_display_host.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/base_login_display_host.cc
diff --git a/chrome/browser/chromeos/login/base_login_display_host.cc b/chrome/browser/chromeos/login/base_login_display_host.cc
index 5d70c27ddf9eb40b1abf59ed12104c6470b7fa25..30b690681530baa797c86022c8805bcc9ffa52a1 100644
--- a/chrome/browser/chromeos/login/base_login_display_host.cc
+++ b/chrome/browser/chromeos/login/base_login_display_host.cc
@@ -29,6 +29,7 @@
#include "chrome/browser/chromeos/login/wizard_controller.h"
#include "chrome/browser/chromeos/mobile_config.h"
#include "chrome/browser/chromeos/system/timezone_settings.h"
+#include "chrome/browser/metrics/variations/variations_service.h"
SteveT 2012/09/06 19:52:20 Note that we add this header here because otherwis
#include "chrome/browser/policy/auto_enrollment_client.h"
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -196,6 +197,10 @@ void BaseLoginDisplayHost::StartWizard(
wizard_controller_.reset();
wizard_controller_.reset(CreateWizardController());
+ // The VariationsService needs to be notified by the controller. The service
+ // will remove itself as an observer when notified.
+ wizard_controller_->AddObserver(g_browser_process->variations_service());
+
oobe_progress_bar_visible_ = !WizardController::IsDeviceRegistered();
SetOobeProgressBarVisible(oobe_progress_bar_visible_);
wizard_controller_->Init(first_screen_name, screen_parameters);

Powered by Google App Engine
This is Rietveld 408576698