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

Side by Side Diff: chrome/common/extensions/docs/examples/api/extension/isAllowedAccess/popup.html

Issue 8309001: Adding `content_security_policy` to a few sample extensions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: License and whitespace. Created 9 years, 2 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this 3 * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
4 * source code is governed by a BSD-style license that can be found in the 4 * source code is governed by a BSD-style license that can be found in the
5 * LICENSE file. 5 * LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <title>extension.isAllowedAccess Sample</title> 9 <title>extension.isAllowedAccess Sample</title>
10 <link rel="stylesheet" href="./sample.css"> 10 <link rel="stylesheet" href="./sample.css">
11 </head> 11 </head>
12 <body> 12 <body>
13 <h1>extension.isAllowedAccess Sample</h1> 13 <h1>extension.isAllowedAccess Sample</h1>
14 <section> 14 <section>
15 <ol> 15 <ol>
16 <li><p> 16 <li><p>
17 <span>1</span> chrome.extension.isAllowedFileSchemeAccess: 17 <span>1</span> chrome.extension.isAllowedFileSchemeAccess:
18 <code id="file">unknown</code> (unpacked extensions always have 18 <code id="file">unknown</code> (unpacked extensions always have
19 file scheme access, you'll need to install this as a packed 19 file scheme access, you'll need to install this as a packed
20 extension to toggle it properly) 20 extension to toggle it properly)
21 </p></li> 21 </p></li>
22 <li><p> 22 <li><p>
23 <span>2</span> chrome.extension.isAllowedIncognitoAccess: 23 <span>2</span> chrome.extension.isAllowedIncognitoAccess:
24 <code id="incognito">unknown</code> 24 <code id="incognito">unknown</code>
25 </p></li> 25 </p></li>
26 </ol> 26 </ol>
27 </section> 27 </section>
28 <script src="./popup.js"></script>
28 <script> 29 <script>
29 chrome.extension.isAllowedFileSchemeAccess(function(state) {
30 var el = document.getElementById('file');
31 el.textContent = el.className = state ? 'true': 'false';
32 });
33 chrome.extension.isAllowedIncognitoAccess(function(state) {
34 var el = document.getElementById('incognito');
35 el.textContent = el.className = state ? 'true': 'false';
36 });
37 </script> 30 </script>
38 </body> 31 </body>
39 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698