From 809fc05909e63d8d236bc09e4ed2dbd20117b2b4 Mon Sep 17 00:00:00 2001 From: asargent Date: Thu, 28 Jan 2016 11:37:53 -0800 Subject: 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} --- extensions/common/api/management.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/common') 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", -- cgit v1.1