B2G/gecko/services/sync/modules/service.js
/**
   * Register the built-in engines for certain applications
   */
Register the built-in engines for certain applications
Register the built - in engines for certain applications
function _registerEngines() {
    let engines = [];
    let pref = Svc.Prefs.get("registerEngines");
    if (pref) {
      engines = pref.split(",");
    }
    Engines.register(engines.map(function onItem(name) {
      return Weave[name + "Engine"];
    }));
  }
function _registerEngines ( ) { let engines = [ ] ; let pref = Svc . Prefs . get ( "registerEngines" ) ; if ( pref ) { engines = pref . split ( "," ) ; } Engines . register ( engines . map ( function onItem ( name ) { return Weave [ name + "Engine" ] ; } ) ) ; }
Register the built-in engines for certain applications
Register the built - in engines for certain applications
// Applications can provide this preference (comma-separated list) // to specify which engines should be registered on startup. // Grab the actual engines and register them