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

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

Issue 14362031: Move part of WizardController static code to StartupUtils (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fighting with whitespaces again 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_
7
8 #include <string>
9
10 class PrefRegistrySimple;
11
12 namespace chromeos {
13
14 // Static utitliy methods used in startup time to get/change bits of device
15 // state.
16 class StartupUtils {
17 public:
18 // Returns true if EULA has been accepted.
19 static bool IsEulaAccepted();
20
21 // Returns OOBE completion status.
22 static bool IsOobeCompleted();
23
24 // Marks EULA status as accepted.
25 static void MarkEulaAccepted();
26
27 // Marks OOBE process as completed.
28 static void MarkOobeCompleted();
29
30 // Returns device registration completion status, i.e. second part of OOBE.
31 static bool IsDeviceRegistered();
32
33 // Marks device registered. i.e. second part of OOBE is completed.
34 static void MarkDeviceRegistered();
35
36 // Returns initial locale from local settings.
37 static std::string GetInitialLocale();
38
39 // Sets initial locale in local settings.
40 static void SetInitialLocale(const std::string& locale);
41
42 // Registers OOBE preferences.
43 static void RegisterPrefs(PrefRegistrySimple* registry);
44 };
45
46 } // namespace chromeos
47
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_screen.cc ('k') | chrome/browser/chromeos/login/startup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698