code: function requestBundles(requestedLangs = navigator.languages) {
      return L10nRegistry.getResources(requestedLangs, resIds).then(
        ({bundles}) => bundles.map(
          bundle => new ChromeResourceBundle(bundle.locale, bundle.resources)
        )
      );
    }
docs: This function is called by `Localization` class to retrieve an array of `ResourceBundle`s. In chrome-privileged setup we use the `L10nRegistry` to get this array.