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

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

Issue 2894783003: Make Hands-Off Zero-Touch Enrollment compatibile with tests (Closed)
Patch Set: Make Hands-Off Zero-Touch Enrollment compatibile with tests Created 3 years, 7 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
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 #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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_screen_unittest.cc ('k') | chrome/browser/chromeos/login/startup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698