Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / startup_utils.h
blobf87ce4f05a80b09de1acf885878edb46c13fcf04
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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_
8 #include <string>
10 class PrefRegistrySimple;
12 namespace chromeos {
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();
21 // Returns OOBE completion status.
22 static bool IsOobeCompleted();
24 // Marks EULA status as accepted.
25 static void MarkEulaAccepted();
27 // Marks OOBE process as completed.
28 static void MarkOobeCompleted();
30 // Returns device registration completion status, i.e. second part of OOBE.
31 static bool IsDeviceRegistered();
33 // Marks device registered. i.e. second part of OOBE is completed.
34 static void MarkDeviceRegistered();
36 // Returns initial locale from local settings.
37 static std::string GetInitialLocale();
39 // Sets initial locale in local settings.
40 static void SetInitialLocale(const std::string& locale);
42 // Registers OOBE preferences.
43 static void RegisterPrefs(PrefRegistrySimple* registry);
46 } // namespace chromeos
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_