Index: chrome/common/extensions/docs/examples/api/contentSettings/popup.js |
diff --git a/chrome/common/extensions/docs/examples/api/contentSettings/popup.js b/chrome/common/extensions/docs/examples/api/contentSettings/popup.js |
index ed2dfc7933e6edf5b229482de93514502b954958..74ef60d88edd85a36f66d9fc5d2fbb711bf3c0fc 100644 |
--- a/chrome/common/extensions/docs/examples/api/contentSettings/popup.js |
+++ b/chrome/common/extensions/docs/examples/api/contentSettings/popup.js |
@@ -25,17 +25,20 @@ document.addEventListener('DOMContentLoaded', function () { |
var current = tabs[0]; |
incognito = current.incognito; |
url = current.url; |
- var types = ['cookies', 'images', 'javascript', 'plugins', 'popups', |
- 'notifications']; |
+ var types = ['cookies', 'images', 'javascript', 'location', 'plugins', |
+ 'popups', 'notifications', 'fullscreen', 'mouselock', |
+ 'microphone', 'camera', 'unsandboxedPlugins', |
+ 'automaticDownloads']; |
types.forEach(function(type) { |
// HACK: [type] is not recognised by the docserver's sample crawler, so |
// mention an explicit |
// type: chrome.contentSettings.cookies.get - See http://crbug.com/299634 |
- chrome.contentSettings[type].get({ |
+ chrome.contentSettings[type] && chrome.contentSettings[type].get({ |
'primaryUrl': url, |
'incognito': incognito |
}, |
function(details) { |
+ document.getElementById(type).disabled = false; |
document.getElementById(type).value = details.setting; |
}); |
}); |