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

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

Issue 2289643003: ChromeOS: Fix "continue OOBE on restart" functionality. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 } // namespace 79 } // namespace
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->RegisterBooleanPref(prefs::kOobeMdMode, false);
87 registry->RegisterIntegerPref(prefs::kDeviceRegistered, -1); 88 registry->RegisterIntegerPref(prefs::kDeviceRegistered, -1);
88 registry->RegisterBooleanPref(prefs::kEnrollmentRecoveryRequired, false); 89 registry->RegisterBooleanPref(prefs::kEnrollmentRecoveryRequired, false);
89 registry->RegisterStringPref(prefs::kInitialLocale, "en-US"); 90 registry->RegisterStringPref(prefs::kInitialLocale, "en-US");
90 registry->RegisterBooleanPref(prefs::kOobeControllerDetected, false); 91 registry->RegisterBooleanPref(prefs::kOobeControllerDetected, false);
91 } 92 }
92 93
93 // static 94 // static
94 bool StartupUtils::IsEulaAccepted() { 95 bool StartupUtils::IsEulaAccepted() {
95 return g_browser_process->local_state()->GetBoolean(prefs::kEulaAccepted); 96 return g_browser_process->local_state()->GetBoolean(prefs::kEulaAccepted);
96 } 97 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 194
194 // static 195 // static
195 void StartupUtils::SetInitialLocale(const std::string& locale) { 196 void StartupUtils::SetInitialLocale(const std::string& locale) {
196 if (l10n_util::IsValidLocaleSyntax(locale)) 197 if (l10n_util::IsValidLocaleSyntax(locale))
197 SaveStringPreferenceForced(prefs::kInitialLocale, locale); 198 SaveStringPreferenceForced(prefs::kInitialLocale, locale);
198 else 199 else
199 NOTREACHED(); 200 NOTREACHED();
200 } 201 }
201 202
202 } // namespace chromeos 203 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698