Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: chrome/common/extensions/docs/templates/intros/permissions.html

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <p id="classSummary"> 1 <p id="classSummary">
2 Use the <code>chrome.permissions</code> module 2 Use the <code>chrome.permissions</code> module
3 to implement optional permissions. 3 to implement optional permissions.
4 As of Chrome 16, you can request optional permissions during your 4 As of Chrome 16, you can request optional permissions during your
5 extension's regular application flow rather than at install time, 5 extension's regular application flow rather than at install time,
6 so users understand why the permissions are needed 6 so users understand why the permissions are needed
7 and use only those that are necessary. 7 and use only those that are necessary.
8 </p> 8 </p>
9 9
10 <p> 10 <p>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ... 66 ...
67 <b>"optional_permissions": [ "tabs", "http://www.google.com/" ],</b> 67 <b>"optional_permissions": [ "tabs", "http://www.google.com/" ],</b>
68 ... 68 ...
69 }</pre> 69 }</pre>
70 </p> 70 </p>
71 71
72 <p> 72 <p>
73 You can specify any of the following as optional permissions: 73 You can specify any of the following as optional permissions:
74 <ul> 74 <ul>
75 <li><i>host permissions</i></li> 75 <li><i>host permissions</i></li>
76 <li>appNotifications</li>
77 <li>background</li> 76 <li>background</li>
78 <li>bookmarks</li> 77 <li>bookmarks</li>
79 <li>clipboardRead</li> 78 <li>clipboardRead</li>
80 <li>clipboardWrite</li> 79 <li>clipboardWrite</li>
81 <li>contentSettings</li> 80 <li>contentSettings</li>
82 <li>contextMenus</li> 81 <li>contextMenus</li>
83 <li>cookies</li> 82 <li>cookies</li>
84 <li>debugger</li> 83 <li>debugger</li>
85 <li>history</li> 84 <li>history</li>
86 <li>idle</li> 85 <li>idle</li>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 origins: ['http://www.google.com/'] 163 origins: ['http://www.google.com/']
165 }, function(removed) { 164 }, function(removed) {
166 if (removed) { 165 if (removed) {
167 // The permissions have been removed. 166 // The permissions have been removed.
168 } else { 167 } else {
169 // The permissions have not been removed (e.g., you tried to remove 168 // The permissions have not been removed (e.g., you tried to remove
170 // required permissions). 169 // required permissions).
171 } 170 }
172 }); 171 });
173 </pre> 172 </pre>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698