| 272 | _viewManagerContexts.emplace_back(viewManagerContext); |
| 273 | |
| 274 | // Seed the kill switch from the current tweaks so contexts created after the provider is set pick |
| 275 | // it up; the setTweakValueProvider loop handles contexts created before it arrives. |
| 276 | viewManagerContext->setApplyManagedChildFramePadding( |
| 277 | _runtimeTweaks != nullptr ? _runtimeTweaks->applyManagedChildFramePadding() : true); |
| 278 | |
| 279 | return viewManagerContext; |
| 280 | } |
| 281 | |
| 282 | void RuntimeManager::registerModuleFactoriesProvider( |
| 283 | const Shared<snap::valdi_core::ModuleFactoriesProvider>& moduleFactoriesProvider) { |
| 284 | auto moduleFactories = moduleFactoriesProvider->createModuleFactories(Valdi::Value(Valdi::strongSmallRef(this))); |
| 285 | |
| 286 | std::vector<SharedRuntime> runtimes; |
| 287 | { |
| 288 | std::lock_guard<Mutex> guard(_mutex); |
| 289 | for (const auto& moduleFactory : moduleFactories) { |
| 290 | _registeredModuleFactories.emplace_back(moduleFactory); |
| 291 | } |
| 292 | runtimes = getAllRuntimes(guard); |
| 293 | } |
| 294 | |
| 295 | // Register the ModuleFactories to the existing Runtimes |
| 296 | for (const auto& runtime : runtimes) { |
nothing calls this directly
no test coverage detected