Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <!-- | |
| 3 * Copyright (c) 2010 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 | |
| 5 * LICENSE file. | |
| 6 --> | |
| 7 <html> | |
| 8 <head> | |
| 9 <title>extension.isAllowedAccess Sample</title> | |
| 10 <link rel="stylesheet" href="./sample.css"> | |
| 11 </head> | |
| 12 <body> | |
| 13 <h1>extension.isAllowedAccess Sample</h1> | |
| 14 <section> | |
| 15 <ol> | |
| 16 <li><p><span>1</span> chrome.extension.isAllowedFileSchemeAccess: <code id="file">unknown</code> (unpacked extensions always have file scheme access, yo u'll need to install this as a packed extension to toggle it properly)</p></li> | |
|
kurrik.chromium
2011/03/21 22:13:02
I didn't even know this. Interesting.
| |
| 17 <li><p><span>2</span> chrome.extension.isAllowedIncognitoAccess: <code i d="incognito">unknown</code></p></li> | |
| 18 </ol> | |
| 19 </section> | |
| 20 <script> | |
| 21 chrome.extension.isAllowedFileSchemeAccess(function(state) { | |
| 22 document.getElementById('file').textContent = state ? 'true': 'false'; | |
|
kurrik.chromium
2011/03/21 22:13:02
Maybe toggle a class name here and style true/fals
Mike West
2011/03/22 08:44:56
Done.
| |
| 23 }); | |
| 24 chrome.extension.isAllowedIncognitoAccess(function(state) { | |
| 25 document.getElementById('incognito').textContent = | |
| 26 state ? 'true': 'false'; | |
| 27 }); | |
| 28 </script> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |