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

Side by Side Diff: chrome/browser/chromeos/login/startup_utils.cc

Issue 1829453002: Enable bootstrapping feature by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL format Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/startup_utils.h" 5 #include "chrome/browser/chromeos/login/startup_utils.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 namespace chromeos { 81 namespace chromeos {
82 82
83 // static 83 // static
84 void StartupUtils::RegisterPrefs(PrefRegistrySimple* registry) { 84 void StartupUtils::RegisterPrefs(PrefRegistrySimple* registry) {
85 registry->RegisterBooleanPref(prefs::kOobeComplete, false); 85 registry->RegisterBooleanPref(prefs::kOobeComplete, false);
86 registry->RegisterStringPref(prefs::kOobeScreenPending, ""); 86 registry->RegisterStringPref(prefs::kOobeScreenPending, "");
87 registry->RegisterIntegerPref(prefs::kDeviceRegistered, -1); 87 registry->RegisterIntegerPref(prefs::kDeviceRegistered, -1);
88 registry->RegisterBooleanPref(prefs::kEnrollmentRecoveryRequired, false); 88 registry->RegisterBooleanPref(prefs::kEnrollmentRecoveryRequired, false);
89 registry->RegisterStringPref(prefs::kInitialLocale, "en-US"); 89 registry->RegisterStringPref(prefs::kInitialLocale, "en-US");
90 registry->RegisterBooleanPref(prefs::kOobeControllerDetected, false);
90 } 91 }
91 92
92 // static 93 // static
93 bool StartupUtils::IsEulaAccepted() { 94 bool StartupUtils::IsEulaAccepted() {
94 return g_browser_process->local_state()->GetBoolean(prefs::kEulaAccepted); 95 return g_browser_process->local_state()->GetBoolean(prefs::kEulaAccepted);
95 } 96 }
96 97
97 // static 98 // static
98 bool StartupUtils::IsOobeCompleted() { 99 bool StartupUtils::IsOobeCompleted() {
99 return g_browser_process->local_state()->GetBoolean(prefs::kOobeComplete); 100 return g_browser_process->local_state()->GetBoolean(prefs::kOobeComplete);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 193
193 // static 194 // static
194 void StartupUtils::SetInitialLocale(const std::string& locale) { 195 void StartupUtils::SetInitialLocale(const std::string& locale) {
195 if (l10n_util::IsValidLocaleSyntax(locale)) 196 if (l10n_util::IsValidLocaleSyntax(locale))
196 SaveStringPreferenceForced(prefs::kInitialLocale, locale); 197 SaveStringPreferenceForced(prefs::kInitialLocale, locale);
197 else 198 else
198 NOTREACHED(); 199 NOTREACHED();
199 } 200 }
200 201
201 } // namespace chromeos 202 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698