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

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

Issue 11473019: [cros,rlz] Remove RLZ checkbox from OOBE UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add back old strings 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
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.h ('k') | chrome/browser/resources/chromeos/login/oobe.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9a80b8073c12b1920f1fbdaacf9b836992ed059b..87a5ce56efcabb56bca37b8fecdc18248108ec32 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -147,7 +147,6 @@ WizardController::WizardController(chromeos::LoginDisplayHost* host,
host_(host),
oobe_display_(oobe_display),
usage_statistics_reporting_(true),
- rlz_enabled_(false),
skip_update_enroll_after_eula_(false),
login_screen_started_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
@@ -423,8 +422,6 @@ void WizardController::RegisterPrefs(PrefService* local_state) {
local_state->RegisterBooleanPref(prefs::kFactoryResetRequested, false);
local_state->RegisterStringPref(prefs::kRLZBrand, std::string(),
PrefService::UNSYNCABLE_PREF);
- local_state->RegisterBooleanPref(prefs::kRLZEnabled, false,
- PrefService::UNSYNCABLE_PREF);
}
///////////////////////////////////////////////////////////////////////////////
@@ -480,14 +477,12 @@ void WizardController::OnEulaAccepted() {
#endif
}
- // TODO(ivankr): post-AU action when |kRLZEnabled| is unset.
+ // TODO(ivankr): post-AU action when |kRLZBrand| is unset.
#if defined(ENABLE_RLZ)
- SaveBoolPreferenceForced(prefs::kRLZEnabled, rlz_enabled_);
+ LoadBrandCodeFromFile();
+#else
+ OnEulaBlockingTasksDone();
#endif
- if (rlz_enabled_)
- LoadBrandCodeFromFile();
- else
- OnEulaBlockingTasksDone();
}
void WizardController::LoadBrandCodeFromFile() {
@@ -852,16 +847,6 @@ bool WizardController::GetUsageStatisticsReporting() const {
return usage_statistics_reporting_;
}
-void WizardController::SetRlzEnabled(bool val) {
-#if defined(ENABLE_RLZ)
- rlz_enabled_ = val;
-#endif
-}
-
-bool WizardController::GetRlzEnabled() const {
- return rlz_enabled_;
-}
-
// static
bool WizardController::IsZeroDelayEnabled() {
return zero_delay_enabled_;
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.h ('k') | chrome/browser/resources/chromeos/login/oobe.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698