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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 11506006: [cros] RLZ tracking can be turned off via a flag file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-apply ps#16, it got lost Created 8 years 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 87a5ce56efcabb56bca37b8fecdc18248108ec32..f9f7cec30c1a99db5adc99deb2cd502074311674 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -39,7 +39,6 @@
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/chromeos/settings/cros_settings_names.h"
-#include "chrome/browser/google/google_util_chromeos.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/options/options_util.h"
@@ -148,8 +147,7 @@ WizardController::WizardController(chromeos::LoginDisplayHost* host,
oobe_display_(oobe_display),
usage_statistics_reporting_(true),
skip_update_enroll_after_eula_(false),
- login_screen_started_(false),
- ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
+ login_screen_started_(false) {
DCHECK(default_controller_ == NULL);
default_controller_ = this;
}
@@ -477,21 +475,6 @@ void WizardController::OnEulaAccepted() {
#endif
}
- // TODO(ivankr): post-AU action when |kRLZBrand| is unset.
-#if defined(ENABLE_RLZ)
- LoadBrandCodeFromFile();
-#else
- OnEulaBlockingTasksDone();
-#endif
-}
-
-void WizardController::LoadBrandCodeFromFile() {
- google_util::chromeos::SetBrandFromFile(
- base::Bind(&WizardController::OnEulaBlockingTasksDone,
- weak_ptr_factory_.GetWeakPtr()));
-}
-
-void WizardController::OnEulaBlockingTasksDone() {
if (skip_update_enroll_after_eula_) {
PerformPostEulaActions();
PerformPostUpdateActions();

Powered by Google App Engine
This is Rietveld 408576698