B2G/gecko/browser/components/downloads/content/indicator.js
/**
   * This function is called during initialization or when toolbar customization
   * ends.  It determines if we should enable or disable the object that keeps
   * the indicator updated, and ensures that the placeholder is hidden unless it
   * has been moved to the customization palette.
   *
   * NOTE: This function is also called on startup, thus it should limit the
   *       input/output it performs, and in particular should not cause the
   *       Download Manager service to start.
   */
This function is called during initialization or when toolbar customization
ends.  It determines if we should enable or disable the object that keeps
the indicator updated, and ensures that the placeholder is hidden unless it
has been moved to the customization palette.

This function is also called on startup, thus it should limit the
input/output it performs, and in particular should not cause the
Download Manager service to start.
This function is called during initialization or when toolbar customization ends . It determines if we should enable or disable the object that keeps the indicator updated and ensures that the placeholder is hidden unless it has been moved to the customization palette . This function is also called on startup thus it should limit the input / output it performs and in particular should not cause the Download Manager service to start .
function DB_update() {
    this._updatePositionInternal();
    if (!DownloadsCommon.useToolkitUI) {
      DownloadsIndicatorView.ensureInitialized();
    } else {
      DownloadsIndicatorView.ensureTerminated();
    }
  }
function DB_update ( ) { this . _updatePositionInternal ( ) ; if ( ! DownloadsCommon . useToolkitUI ) { DownloadsIndicatorView . ensureInitialized ( ) ; } else { DownloadsIndicatorView . ensureTerminated ( ) ; } }
This function is called during initialization or when toolbar customization
 ends.
This function is called during initialization or when toolbar customization ends .