| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // Gets the browser containing the web UI; if none is found, returns the last | 31 // Gets the browser containing the web UI; if none is found, returns the last |
| 32 // active browser for web UI's profile. | 32 // active browser for web UI's profile. |
| 33 Browser* GetDesktopBrowser(content::WebUI* web_ui); | 33 Browser* GetDesktopBrowser(content::WebUI* web_ui); |
| 34 | 34 |
| 35 // Sets the height of the WebUI modal dialog after its initialization. This is | 35 // Sets the height of the WebUI modal dialog after its initialization. This is |
| 36 // needed to better accomodate different locales' text heights. | 36 // needed to better accomodate different locales' text heights. |
| 37 void SetInitializedModalHeight(content::WebUI* web_ui, | 37 void SetInitializedModalHeight(content::WebUI* web_ui, |
| 38 const base::ListValue* args); | 38 const base::ListValue* args); |
| 39 | 39 |
| 40 // Return true if force signin is enabled by group policy. |
| 41 bool IsForceSigninEnabled(); |
| 42 |
| 40 } // namespace signin | 43 } // namespace signin |
| 41 | 44 |
| 42 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ | 45 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| OLD | NEW |