[SecureConnect Extension] Add missing chrome.management extern
Using this method for SecureConnect, was missing for some reason
@@ -3551,7 +3551,7 @@ chrome.cookies = {};
* This typedef is used for the parameters to chrome.cookies.get,
* chrome.cookies.remove, and for the parameter to remove's callback. These uses
* all identify a single cookie uniquely without specifying its content, and the
- * objects are identical except for the the storeId being optional vs required.
+ * objects are identical except for the storeId being optional vs required.
* If greater divergence occurs, then going to two typedefs is recommended.
*
* @typedef {?{
@@ -3646,7 +3646,10 @@ CookieChangeInfo.prototype.cookie;
CookieChangeInfo.prototype.cause;
-/** @const */
+/**
+ * @const
+ * @see https://developer.chrome.com/extensions/management
+ */
chrome.management = {};
@@ -3658,6 +3661,14 @@ chrome.management = {};
chrome.management.InstallOptions;
+/**
+ * @param {function(!Array<!ExtensionInfo>): void=} opt_callback Optional
+ * callback function.
+ * @return {!Array<!ExtensionInfo>}
+ */
+chrome.management.getAll = function(opt_callback) {};
+
+
/**
* @param {string} id
* @param {function(!ExtensionInfo): void=} opt_callback Optional callback
@@ -3668,11 +3679,11 @@ chrome.management.get = function(id, opt_callback) {};
/**
- * @param {function(!Array<!ExtensionInfo>): void=} opt_callback Optional
- * callback function.
- * @return {!Array<!ExtensionInfo>}
+ * @param {function(!ExtensionInfo): void=} opt_callback Optional
+ * callback function
+ * @return {undefined}
*/
-chrome.management.getAll = function(opt_callback) {};
+chrome.management.getSelf = function(opt_callback) {};
/**
@@ -3692,14 +3703,6 @@ chrome.management.getPermissionWarningsByManifest =
function(manifestStr, opt_callback) {};
-/**
- * @param {string} id The id of an already installed extension.
- * @param {function(): void=} opt_callback Optional callback function.
- * @return {undefined}
- */
-chrome.management.launchApp = function(id, opt_callback) {};
-
-
/**
* @param {string} id The id of an already installed extension.
* @param {boolean} enabled Whether this item should be enabled.
@@ -3732,6 +3735,14 @@ chrome.management.uninstallSelf =
function(opt_optionsOrCallback, opt_callback) {};
+/**
+ * @param {string} id The id of an already installed extension.
+ * @param {function(): void=} opt_callback Optional callback function.
+ * @return {undefined}
+ */
+chrome.management.launchApp = function(id, opt_callback) {};
+
+
/**
* @param {string} id The id of an already installed extension.
* @param {function(): void=} opt_callback Optional callback function.
@@ -3763,19 +3774,19 @@ chrome.management.generateAppForLink = function(url, title, opt_callback) {};
/** @type {!ChromeExtensionInfoEvent} */
-chrome.management.onDisabled;
+chrome.management.onInstalled;
-/** @type {!ChromeExtensionInfoEvent} */
-chrome.management.onEnabled;
+/** @type {!ChromeStringEvent} */
+chrome.management.onUninstalled;
/** @type {!ChromeExtensionInfoEvent} */
-chrome.management.onInstalled;
+chrome.management.onEnabled;
-/** @type {!ChromeStringEvent} */
-chrome.management.onUninstalled;
+/** @type {!ChromeExtensionInfoEvent} */
+chrome.management.onDisabled;
/**
