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

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: 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/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..990a0400c337a4f10990b78b7bc3507cc04b3e0c 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"
#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,9 @@ void BaseLoginDisplayHost::StartWizard(
wizard_controller_.reset();
wizard_controller_.reset(CreateWizardController());
+ g_browser_process->variations_service()->
+ RegisterForEulaAcceptedNotification(wizard_controller_.get());
Alexei Svitkine (slow) 2012/09/14 20:50:16 I don't like this at all. I understand you're tryi
SteveT 2012/09/14 20:52:45 Hmm, this seems less hacky in the sense that the d
Ilya Sherman 2012/09/14 20:55:43 Ick. It looks like the WizardController class pro
Alexei Svitkine (slow) 2012/09/14 20:59:21 It looks like that is set to NULL until the wizard
SteveT 2012/09/14 21:01:02 That was my original approach WAAAAYY back. The is
Ilya Sherman 2012/09/14 21:05:17 I didn't see Alexei's suggestion until after I had
SteveT 2012/09/14 21:09:24 That's a possibility, assuming that common object
Nikita (slow) 2012/09/17 07:57:47 Instance of LoginDisplayHost/BaseLoginDisplayHost
SteveT 2012/09/17 14:32:28 From offline discussion with Nikita: It looks lik
+
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