summaryrefslogtreecommitdiffstats
path: root/extensions/common
diff options
context:
space:
mode:
authorasargent <asargent@chromium.org>2016-01-28 11:37:53 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-28 19:39:45 +0000
commit809fc05909e63d8d236bc09e4ed2dbd20117b2b4 (patch)
tree191d86eb18e7753deb8f69135d3d76d38c64e0ea /extensions/common
parent0efcf76293ca0b7af8835fb7c444e1b77d1e2343 (diff)
downloadchromium_src-809fc05909e63d8d236bc09e4ed2dbd20117b2b4.zip
chromium_src-809fc05909e63d8d236bc09e4ed2dbd20117b2b4.tar.gz
chromium_src-809fc05909e63d8d236bc09e4ed2dbd20117b2b4.tar.bz2
Improve documentation for the management.setEnabled function
Added some information about: -user gesture requirement -native confirmation UI BUG=178319 Review URL: https://codereview.chromium.org/1649803002 Cr-Commit-Position: refs/heads/master@{#372143}
Diffstat (limited to 'extensions/common')
-rw-r--r--extensions/common/api/management.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/common/api/management.json b/extensions/common/api/management.json
index 8d126a7..2e05940 100644
--- a/extensions/common/api/management.json
+++ b/extensions/common/api/management.json
@@ -264,7 +264,7 @@
},
{
"name": "setEnabled",
- "description": "Enables or disables an app or extension.",
+ "description": "Enables or disables an app or extension. In most cases this function must be called in the context of a user gesture (e.g. an onclick handler for a button), and may present the user with a native confirmation UI as a way of preventing abuse.",
"parameters": [
{
"name": "id",