OLD | NEW |
1 <div id="pageData-name" class="pageData">Optional Permissions</div> | 1 <div id="pageData-name" class="pageData">Optional Permissions</div> |
2 | 2 |
3 <!-- BEGIN AUTHORED CONTENT --> | 3 <!-- BEGIN AUTHORED CONTENT --> |
4 <p id="classSummary"> | 4 <p id="classSummary"> |
5 Use the <code>chrome.permissions</code> module to implement | 5 Use the <code>chrome.permissions</code> module to implement |
6 optional permissions. You can request optional permissions during your | 6 optional permissions. You can request optional permissions during your |
7 extension's regular application flow rather than at install time, so users | 7 extension's regular application flow rather than at install time, so users |
8 understand why the permissions are needed and use only those that are | 8 understand why the permissions are needed and use only those that are |
9 necessary. | 9 necessary. |
10 </p> | 10 </p> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 <li>contentSettings</li> | 84 <li>contentSettings</li> |
85 <li>contextMenus</li> | 85 <li>contextMenus</li> |
86 <li>cookies</li> | 86 <li>cookies</li> |
87 <li>debugger</li> | 87 <li>debugger</li> |
88 <li>history</li> | 88 <li>history</li> |
89 <li>idle</li> | 89 <li>idle</li> |
90 <li>management</li> | 90 <li>management</li> |
91 <li>notifications</li> | 91 <li>notifications</li> |
92 <li>pageCapture</li> | 92 <li>pageCapture</li> |
93 <li>tabs</li> | 93 <li>tabs</li> |
| 94 <li>topSites</li> |
94 <li>webNavigation</li> | 95 <li>webNavigation</li> |
95 <li>webRequest</li> | 96 <li>webRequest</li> |
96 <li>webRequestBlocking</li> | 97 <li>webRequestBlocking</li> |
97 </ul> | 98 </ul> |
98 </p> | 99 </p> |
99 | 100 |
100 <p class="note"> | 101 <p class="note"> |
101 <b>Version note:</b> This list is correct as of Chrome 17. | 102 <b>Version note:</b> This list is correct as of Chrome 17. |
102 More optional permissions might be allowed in future releases. | 103 More optional permissions might be allowed in future releases. |
103 </p> | 104 </p> |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 if (removed) { | 174 if (removed) { |
174 // The permissions have been removed. | 175 // The permissions have been removed. |
175 } else { | 176 } else { |
176 // The permissions have not been removed (e.g., you tried to remove | 177 // The permissions have not been removed (e.g., you tried to remove |
177 // required permissions). | 178 // required permissions). |
178 } | 179 } |
179 }); | 180 }); |
180 </pre> | 181 </pre> |
181 | 182 |
182 <!-- END AUTHORED CONTENT --> | 183 <!-- END AUTHORED CONTENT --> |
OLD | NEW |