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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Mark a device as requiring enrollment recovery. | 41 // Mark a device as requiring enrollment recovery. |
42 static void MarkEnrollmentRecoveryRequired(); | 42 static void MarkEnrollmentRecoveryRequired(); |
43 | 43 |
44 // Returns initial locale from local settings. | 44 // Returns initial locale from local settings. |
45 static std::string GetInitialLocale(); | 45 static std::string GetInitialLocale(); |
46 | 46 |
47 // Sets initial locale in local settings. | 47 // Sets initial locale in local settings. |
48 static void SetInitialLocale(const std::string& locale); | 48 static void SetInitialLocale(const std::string& locale); |
49 | 49 |
50 // Returns true if it is allowed to activate the new version of OOBE. | |
51 static bool IsNewOobeAllowed(); | |
52 | |
53 // Returns true if the new version of OOBE has been activated. | |
54 static bool IsNewOobeActivated(); | |
55 | |
56 // Returns true if it is allowed to activate webview based signin flow. | 50 // Returns true if it is allowed to activate webview based signin flow. |
57 static bool IsWebviewSigninAllowed(); | 51 static bool IsWebviewSigninAllowed(); |
58 | 52 |
59 // Returns true if webview based signin flow has been activated. | 53 // Returns true if webview based signin flow has been activated. |
60 static bool IsWebviewSigninEnabled(); | 54 static bool IsWebviewSigninEnabled(); |
61 | 55 |
62 // Set enabled state for webview based signin flow if allowed. Returns true if | 56 // Set enabled state for webview based signin flow if allowed. Returns true if |
63 // it is allowed to activate webview based signin flow. | 57 // it is allowed to activate webview based signin flow. |
64 static bool EnableWebviewSignin(bool is_enabled); | 58 static bool EnableWebviewSignin(bool is_enabled); |
65 | 59 |
66 // Registers OOBE preferences. | 60 // Registers OOBE preferences. |
67 static void RegisterPrefs(PrefRegistrySimple* registry); | 61 static void RegisterPrefs(PrefRegistrySimple* registry); |
68 }; | 62 }; |
69 | 63 |
70 } // namespace chromeos | 64 } // namespace chromeos |
71 | 65 |
72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ | 66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ |
OLD | NEW |