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.h" | 10 #include "base/callback.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Mark a device as requiring enrollment recovery. | 53 // Mark a device as requiring enrollment recovery. |
54 static void MarkEnrollmentRecoveryRequired(); | 54 static void MarkEnrollmentRecoveryRequired(); |
55 | 55 |
56 // Returns initial locale from local settings. | 56 // Returns initial locale from local settings. |
57 static std::string GetInitialLocale(); | 57 static std::string GetInitialLocale(); |
58 | 58 |
59 // Sets initial locale in local settings. | 59 // Sets initial locale in local settings. |
60 static void SetInitialLocale(const std::string& locale); | 60 static void SetInitialLocale(const std::string& locale); |
61 | 61 |
| 62 // Saves the time of the last update check which did not result in any update. |
| 63 static void SaveTimeOfLastUpdateCheckWithoutUpdate(base::Time time); |
| 64 |
| 65 // Clears the update check time which was previously saved. |
| 66 static void ClearTimeOfLastUpdateCheckWithoutUpdate(); |
| 67 |
| 68 // Returns the time of the last update check which did not lead to an update. |
| 69 static base::Time GetTimeOfLastUpdateCheckWithoutUpdate(); |
| 70 |
62 // Registers OOBE preferences. | 71 // Registers OOBE preferences. |
63 static void RegisterPrefs(PrefRegistrySimple* registry); | 72 static void RegisterPrefs(PrefRegistrySimple* registry); |
64 }; | 73 }; |
65 | 74 |
66 } // namespace chromeos | 75 } // namespace chromeos |
67 | 76 |
68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ |
OLD | NEW |