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

Side by Side Diff: chrome/common/extensions/docs/static/cookies.html

Issue 2824058: Add a simple cookies sample. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: remove console.log statements Created 10 years, 5 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
« no previous file with comments | « chrome/common/extensions/docs/examples/api/cookies/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- BEGIN AUTHORED CONTENT --> 1 <!-- BEGIN AUTHORED CONTENT -->
2 <h2 id="manifest">Manifest</h2> 2 <h2 id="manifest">Manifest</h2>
3 3
4 <p>To use the cookies API, 4 <p>To use the cookies API,
5 you must declare the "cookies" permission in your manifest, 5 you must declare the "cookies" permission in your manifest,
6 along with <a href="manifest.html#permissions">host permissions</a> 6 along with <a href="manifest.html#permissions">host permissions</a>
7 for any hosts whose cookies 7 for any hosts whose cookies
8 you want to access. 8 you want to access.
9 For example:</p> 9 For example:</p>
10 10
11 <pre>{ 11 <pre>{
12 "name": "My extension", 12 "name": "My extension",
13 ... 13 ...
14 <b>"permissions": [ 14 <b>"permissions": [
15 "cookies", 15 "cookies",
16 "*://*.google.com" 16 "*://*.google.com"
17 ]</b>, 17 ]</b>,
18 ... 18 ...
19 }</pre> 19 }</pre>
20 20
21 <h2 id="examples"> Examples </h2>
22
23 <p>
24 You can find a simple example
25 of using the cookies API in the
26 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension s/docs/examples/api/cookies/">examples/api/cookies</a>
27 directory.
28 For other examples
29 and for help in viewing the source code,
30 see <a href="samples.html">Samples</a>.
31 </p>
32
21 <!-- END AUTHORED CONTENT --> 33 <!-- END AUTHORED CONTENT -->
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/examples/api/cookies/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698