OLD | NEW |
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 | 11 |
12 class PrefRegistrySimple; | 12 class PrefRegistrySimple; |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class Time; | |
16 class TimeDelta; | 15 class TimeDelta; |
17 } | 16 } |
18 | 17 |
19 namespace chromeos { | 18 namespace chromeos { |
20 | 19 |
21 // Static utility methods used at startup time to get/change bits of device | 20 // Static utility methods used at startup time to get/change bits of device |
22 // state. | 21 // state. |
23 class StartupUtils { | 22 class StartupUtils { |
24 public: | 23 public: |
25 // Returns true if EULA has been accepted. | 24 // Returns true if EULA has been accepted. |
(...skipping 27 matching lines...) Expand all Loading... |
53 | 52 |
54 // Mark a device as requiring enrollment recovery. | 53 // Mark a device as requiring enrollment recovery. |
55 static void MarkEnrollmentRecoveryRequired(); | 54 static void MarkEnrollmentRecoveryRequired(); |
56 | 55 |
57 // Returns initial locale from local settings. | 56 // Returns initial locale from local settings. |
58 static std::string GetInitialLocale(); | 57 static std::string GetInitialLocale(); |
59 | 58 |
60 // Sets initial locale in local settings. | 59 // Sets initial locale in local settings. |
61 static void SetInitialLocale(const std::string& locale); | 60 static void SetInitialLocale(const std::string& locale); |
62 | 61 |
63 // Saves the time of the last update check which did not result in any update. | |
64 static void SaveTimeOfLastUpdateCheckWithoutUpdate(base::Time time); | |
65 | |
66 // Clears the update check time which was previously saved. | |
67 static void ClearTimeOfLastUpdateCheckWithoutUpdate(); | |
68 | |
69 // Returns the time of the last update check which did not lead to an update. | |
70 static base::Time GetTimeOfLastUpdateCheckWithoutUpdate(); | |
71 | |
72 // Registers OOBE preferences. | 62 // Registers OOBE preferences. |
73 static void RegisterPrefs(PrefRegistrySimple* registry); | 63 static void RegisterPrefs(PrefRegistrySimple* registry); |
74 }; | 64 }; |
75 | 65 |
76 } // namespace chromeos | 66 } // namespace chromeos |
77 | 67 |
78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ | 68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ |
OLD | NEW |