| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // feature is stable. | 115 // feature is stable. |
| 116 bool IsNewBookmarkAppsEnabled(); | 116 bool IsNewBookmarkAppsEnabled(); |
| 117 | 117 |
| 118 // TODO(dominickn): http://crbug.com/517682: Remove this entirely once | 118 // TODO(dominickn): http://crbug.com/517682: Remove this entirely once |
| 119 // open in window is stable on Mac. | 119 // open in window is stable on Mac. |
| 120 bool CanHostedAppsOpenInWindows(); | 120 bool CanHostedAppsOpenInWindows(); |
| 121 | 121 |
| 122 // Returns true for custodian-installed extensions in a supervised profile. | 122 // Returns true for custodian-installed extensions in a supervised profile. |
| 123 bool IsExtensionSupervised(const Extension* extension, Profile* profile); | 123 bool IsExtensionSupervised(const Extension* extension, Profile* profile); |
| 124 | 124 |
| 125 // Returns true if supervised users need approval from their custodian for | |
| 126 // approving escalated permissions on updated extensions. | |
| 127 bool NeedCustodianApprovalForPermissionIncrease(const Profile* profile); | |
| 128 | |
| 129 } // namespace util | 125 } // namespace util |
| 130 } // namespace extensions | 126 } // namespace extensions |
| 131 | 127 |
| 132 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ | 128 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ |
| OLD | NEW |