function onServiceDownloadsAvailable(entries) {
    for (var i = 0; i < entries.length; i++) {
      var entry = entries[i];
      if (entry.state == ServiceEntryState.COMPLETE) {
        finishedServiceEntries.unshift(entry);
      } else {
        ongoingServiceEntries.unshift(entry);
      }
    }

    updateEntryTables();
  }
/**
   * @param {!Array<!ServiceEntry>} entries A list entries currently tracked by
   *     the download service.
   */
@param {!Array} entries A list entries currently tracked by
the download service.
@param { !Array } entries A list entries currently tracked by the download service .
function onServiceDownloadsAvailable(entries) {
    for (var i = 0; i < entries.length; i++) {
      var entry = entries[i];
      if (entry.state == ServiceEntryState.COMPLETE) {
        finishedServiceEntries.unshift(entry);
      } else {
        ongoingServiceEntries.unshift(entry);
      }
    }
    updateEntryTables();
  }
function onServiceDownloadsAvailable ( entries ) { for ( var i = 0 ; i < entries . length ; i ++ ) { var entry = entries [ i ] ; if ( entry . state == ServiceEntryState . COMPLETE ) { finishedServiceEntries . unshift ( entry ) ; } else { ongoingServiceEntries . unshift ( entry ) ; } } updateEntryTables ( ) ; }
@param {!Array<!ServiceEntry>} entries A list entries currently tracked by
     the download service.
@param { !Array<!ServiceEntry > } entries A list entries currently tracked by the download service .