function onServiceDownloadChanged(entry) {
    if (entry.state == ServiceEntryState.COMPLETE) {
      removeGuidFromList(ongoingServiceEntries, entry.guid);
      addOrUpdateEntryByGuid(finishedServiceEntries, entry);
    } else {
      addOrUpdateEntryByGuid(ongoingServiceEntries, entry);
    }

    updateEntryTables();
  }
/**
   * @param {!ServiceEntry} entry The new state for a particular download
   *     service entry.
   */
@param {!ServiceEntry} entry The new state for a particular download
service entry.
@param { !ServiceEntry } entry The new state for a particular download service entry .
function onServiceDownloadChanged(entry) {
    if (entry.state == ServiceEntryState.COMPLETE) {
      removeGuidFromList(ongoingServiceEntries, entry.guid);
      addOrUpdateEntryByGuid(finishedServiceEntries, entry);
    } else {
      addOrUpdateEntryByGuid(ongoingServiceEntries, entry);
    }
    updateEntryTables();
  }
function onServiceDownloadChanged ( entry ) { if ( entry . state == ServiceEntryState . COMPLETE ) { removeGuidFromList ( ongoingServiceEntries , entry . guid ) ; addOrUpdateEntryByGuid ( finishedServiceEntries , entry ) ; } else { addOrUpdateEntryByGuid ( ongoingServiceEntries , entry ) ; } updateEntryTables ( ) ; }
@param {!ServiceEntry} entry The new state for a particular download
     service entry.
@param { !ServiceEntry } entry The new state for a particular download service entry .