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

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

Issue 14066011: Move kEulaAccepted pref name to chrome/common/pref_names.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/eula_accepted_notifier_mobile.cc » ('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
===================================================================
--- chrome/browser/chromeos/login/wizard_controller.cc (revision 194221)
+++ chrome/browser/chromeos/login/wizard_controller.cc (working copy)
@@ -67,9 +67,6 @@
namespace {
-// A boolean pref of the EULA accepted flag.
-const char kEulaAccepted[] = "EulaAccepted";
-
// A string pref with initial locale set in VPD or manifest.
const char kInitialLocale[] = "intl.initial_locale";
@@ -424,7 +421,7 @@
void WizardController::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterBooleanPref(kOobeComplete, false);
registry->RegisterIntegerPref(kDeviceRegistered, -1);
- registry->RegisterBooleanPref(kEulaAccepted, false);
+ registry->RegisterBooleanPref(prefs::kEulaAccepted, false);
registry->RegisterStringPref(kInitialLocale, "en-US");
}
@@ -701,7 +698,7 @@
// static
bool WizardController::IsEulaAccepted() {
- return g_browser_process->local_state()->GetBoolean(kEulaAccepted);
+ return g_browser_process->local_state()->GetBoolean(prefs::kEulaAccepted);
}
// static
@@ -711,7 +708,7 @@
// static
void WizardController::MarkEulaAccepted() {
- SaveBoolPreferenceForced(kEulaAccepted, true);
+ SaveBoolPreferenceForced(prefs::kEulaAccepted, true);
}
// static
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/eula_accepted_notifier_mobile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698