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

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

Issue 1887953002: Revert of [Merge to M50] Enable bootstrapping feature by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: 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);
91 } 90 }
92 91
93 // static 92 // static
94 bool StartupUtils::IsEulaAccepted() { 93 bool StartupUtils::IsEulaAccepted() {
95 return g_browser_process->local_state()->GetBoolean(prefs::kEulaAccepted); 94 return g_browser_process->local_state()->GetBoolean(prefs::kEulaAccepted);
96 } 95 }
97 96
98 // static 97 // static
99 bool StartupUtils::IsOobeCompleted() { 98 bool StartupUtils::IsOobeCompleted() {
100 return g_browser_process->local_state()->GetBoolean(prefs::kOobeComplete); 99 return g_browser_process->local_state()->GetBoolean(prefs::kOobeComplete);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 192
194 // static 193 // static
195 void StartupUtils::SetInitialLocale(const std::string& locale) { 194 void StartupUtils::SetInitialLocale(const std::string& locale) {
196 if (l10n_util::IsValidLocaleSyntax(locale)) 195 if (l10n_util::IsValidLocaleSyntax(locale))
197 SaveStringPreferenceForced(prefs::kInitialLocale, locale); 196 SaveStringPreferenceForced(prefs::kInitialLocale, locale);
198 else 197 else
199 NOTREACHED(); 198 NOTREACHED();
200 } 199 }
201 200
202 } // namespace chromeos 201 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698