B2G/gecko/services/aitc/modules/client.js
/**
   * Initiates an update of a newly installed app to the AITC server. Call this
   * when an application is installed locally.
   *
   * @param app
   *        (Object) The app record of the application that was just installed.
   */
Initiates an update of a newly installed app to the AITC server. Call this
when an application is installed locally.

@param app
(Object) The app record of the application that was just installed.
Initiates an update of a newly installed app to the AITC server . Call this when an application is installed locally . @param app ( Object ) The app record of the application that was just installed .
function remoteInstall(app, cb) {
    if (!cb) {
      throw new Error("remoteInstall called without callback");
    }
    let self = this;
    DOMApplicationRegistry.getManifestFor(app.origin, function gotManifest(m) {
      if (m) {
        app.name = m.name;
      }
      self._putApp(self._makeRemoteApp(app), cb);
    });
  }
function remoteInstall ( app , cb ) { if ( ! cb ) { throw new Error ( "remoteInstall called without callback" ) ; } let self = this ; DOMApplicationRegistry . getManifestFor ( app . origin , function gotManifest ( m ) { if ( m ) { app . name = m . name ; } self . _putApp ( self . _makeRemoteApp ( app ) , cb ) ; } ) ; }
Initiates an update of a newly installed app to the AITC server.
Initiates an update of a newly installed app to the AITC server .
// Fetch the name of the app because it's not in the event app object.