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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // have one). | 118 // have one). |
119 const gfx::ImageSkia& GetDefaultExtensionIcon(); | 119 const gfx::ImageSkia& GetDefaultExtensionIcon(); |
120 const gfx::ImageSkia& GetDefaultAppIcon(); | 120 const gfx::ImageSkia& GetDefaultAppIcon(); |
121 | 121 |
122 // Returns true if the bookmark apps feature is enabled. | 122 // Returns true if the bookmark apps feature is enabled. |
123 // | 123 // |
124 // TODO(benwells): http://crbug.com/441128: Remove this entirely once the | 124 // TODO(benwells): http://crbug.com/441128: Remove this entirely once the |
125 // feature is stable. | 125 // feature is stable. |
126 bool IsNewBookmarkAppsEnabled(); | 126 bool IsNewBookmarkAppsEnabled(); |
127 | 127 |
| 128 // TODO(dominickn): http://crbug.com/517682: Remove this entirely once |
| 129 // open in window is stable on Mac. |
| 130 bool CanHostedAppsOpenInWindows(); |
| 131 |
128 // Returns true for custodian-installed extensions in a supervised profile. | 132 // Returns true for custodian-installed extensions in a supervised profile. |
129 bool IsExtensionSupervised(const Extension* extension, Profile* profile); | 133 bool IsExtensionSupervised(const Extension* extension, Profile* profile); |
130 | 134 |
131 // Returns true if supervised users need approval from their custodian for | 135 // Returns true if supervised users need approval from their custodian for |
132 // approving escalated permissions on updated extensions. | 136 // approving escalated permissions on updated extensions. |
133 bool NeedCustodianApprovalForPermissionIncrease(); | 137 bool NeedCustodianApprovalForPermissionIncrease(); |
134 | 138 |
135 } // namespace util | 139 } // namespace util |
136 } // namespace extensions | 140 } // namespace extensions |
137 | 141 |
138 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ | 142 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ |
OLD | NEW |