Remove Modulator::FetchNewSingleModule()
Instead of redirecting ModuleMap->Modulator->ModuleScriptLoader, this CL makes ModuleMap::FetchSingleModuleScript() to invoke ModuleScriptLoader directly, in order to: - Reduce indirection around Modulator, and - Remove Modulator::FetchNewSingleModule(). This CL moves ModuleScriptLoaderRegistry from ModulatorImplBase to ModuleMap, to make it accessible from ModuleMap. This shouldn't affect lifetime and semantics, because Modulator and ModuleMap correspond one-to-one. Previously, unit tests have overridden Modulator::FetchNewSingleModule() and put fake implementation there. After this CL, unit tests creates a fake ModuleScriptFetcher. Bug: 845285 Change-Id: If94d958c57e0e3e18622efd032863b2fbd8cc5c2 Reviewed-on: https://chromium-review.googlesource.com/1079963 Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#567179}
Showing
Please register or sign in to comment