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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 50 // Returns true if it is allowed to activate the new version of OOBE. |
51 static bool IsNewOobeAllowed(); | 51 static bool IsNewOobeAllowed(); |
52 | 52 |
53 // Returns true if the new version of OOBE has been activated. | 53 // Returns true if the new version of OOBE has been activated. |
54 static bool IsNewOobeActivated(); | 54 static bool IsNewOobeActivated(); |
55 | 55 |
| 56 // Returns true if it is allowed to activate webview based signin flow. |
| 57 static bool IsWebviewSigninAllowed(); |
| 58 |
| 59 // Returns true if webview based signin flow has been activated. |
| 60 static bool IsWebviewSigninEnabled(); |
| 61 |
| 62 // Set enabled state for webview based signin flow if allowed. Returns true if |
| 63 // it is allowed to activate webview based signin flow. |
| 64 static bool EnableWebviewSignin(bool is_enabled); |
| 65 |
56 // Registers OOBE preferences. | 66 // Registers OOBE preferences. |
57 static void RegisterPrefs(PrefRegistrySimple* registry); | 67 static void RegisterPrefs(PrefRegistrySimple* registry); |
58 }; | 68 }; |
59 | 69 |
60 } // namespace chromeos | 70 } // namespace chromeos |
61 | 71 |
62 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_STARTUP_UTILS_H_ |
OLD | NEW |