function createExtensionInfo(opt_properties) {
    var id = opt_properties && opt_properties.hasOwnProperty('id') ?
        opt_properties[id] :
        'a'.repeat(32);
    var baseUrl = 'chrome-extension://' + id + '/';
    return Object.assign(
        {
          commands: [],
          dependentExtensions: [],
          description: 'This is an extension',
          disableReasons: {
            suspiciousInstall: false,
            corruptInstall: false,
            updateRequired: false,
          },
          homePage: {specified: false, url: ''},
          iconUrl: 'chrome://extension-icon/' + id + '/24/0',
          id: id,
          incognitoAccess: {isEnabled: true, isActive: false},
          location: 'FROM_STORE',
          manifestErrors: [],
          name: 'Wonderful Extension',
          runtimeErrors: [],
          runtimeWarnings: [],
          permissions: [],
          state: 'ENABLED',
          type: 'EXTENSION',
          userMayModify: true,
          version: '2.0',
          views: [{url: baseUrl + 'foo.html'}, {url: baseUrl + 'bar.html'}],
        },
        opt_properties);
  }
/**
   * Creates an ExtensionInfo object.
   * @param {Object=} opt_properties A set of properties that will be used on
   *     the resulting ExtensionInfo (otherwise defaults will be used).
   * @return {chrome.developerPrivate.ExtensionInfo}
   */
Creates an ExtensionInfo object.
@param {Object=} opt_properties A set of properties that will be used on
the resulting ExtensionInfo (otherwise defaults will be used).
Creates an ExtensionInfo object . @param { Object = } opt_properties A set of properties that will be used on the resulting ExtensionInfo ( otherwise defaults will be used ) .
function createExtensionInfo(opt_properties) {
    var id = opt_properties && opt_properties.hasOwnProperty('id') ?
        opt_properties[id] :
        'a'.repeat(32);
    var baseUrl = 'chrome-extension://' + id + '/';
    return Object.assign(
        {
          commands: [],
          dependentExtensions: [],
          description: 'This is an extension',
          disableReasons: {
            suspiciousInstall: false,
            corruptInstall: false,
            updateRequired: false,
          },
          homePage: {specified: false, url: ''},
          iconUrl: 'chrome://extension-icon/' + id + '/24/0',
          id: id,
          incognitoAccess: {isEnabled: true, isActive: false},
          location: 'FROM_STORE',
          manifestErrors: [],
          name: 'Wonderful Extension',
          runtimeErrors: [],
          runtimeWarnings: [],
          permissions: [],
          state: 'ENABLED',
          type: 'EXTENSION',
          userMayModify: true,
          version: '2.0',
          views: [{url: baseUrl + 'foo.html'}, {url: baseUrl + 'bar.html'}],
        },
        opt_properties);
  }
function createExtensionInfo ( opt_properties ) { var id = opt_properties && opt_properties . hasOwnProperty ( 'id' ) ? opt_properties [ id ] : 'a' . repeat ( 32 ) ; var baseUrl = 'chrome-extension://' + id + '/' ; return Object . assign ( { commands : [ ] , dependentExtensions : [ ] , description : 'This is an extension' , disableReasons : { suspiciousInstall : false , corruptInstall : false , updateRequired : false , } , homePage : { specified : false , url : '' } , iconUrl : 'chrome://extension-icon/' + id + '/24/0' , id : id , incognitoAccess : { isEnabled : true , isActive : false } , location : 'FROM_STORE' , manifestErrors : [ ] , name : 'Wonderful Extension' , runtimeErrors : [ ] , runtimeWarnings : [ ] , permissions : [ ] , state : 'ENABLED' , type : 'EXTENSION' , userMayModify : true , version : '2.0' , views : [ { url : baseUrl + 'foo.html' } , { url : baseUrl + 'bar.html' } ] , } , opt_properties ) ; }
Creates an ExtensionInfo object.
Creates an ExtensionInfo object .