Skip to content

Commit

Permalink
[SecureConnect Extension] Add missing chrome.management extern
Browse files Browse the repository at this point in the history
Using this method for SecureConnect, was missing for some reason

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=184052952
  • Loading branch information
evanwiederspan authored and lauraharker committed Feb 1, 2018
1 parent 3903d9c commit 9fcbe3e
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions contrib/externs/chrome_extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {?{
Expand Down Expand Up @@ -3646,7 +3646,10 @@ CookieChangeInfo.prototype.cookie;
CookieChangeInfo.prototype.cause;


/** @const */
/**
* @const
* @see https://developer.chrome.com/extensions/management
*/
chrome.management = {};


Expand All @@ -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
Expand All @@ -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) {};


/**
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;


/**
Expand Down

0 comments on commit 9fcbe3e

Please sign in to comment.