| 853 | void EnsureFinalized() { FileSystemFactoryRegistry::GetInstance()->EnsureFinalized(); } |
| 854 | |
| 855 | FileSystemRegistrar::FileSystemRegistrar(std::string scheme, FileSystemFactory factory, |
| 856 | std::function<void()> finalizer) { |
| 857 | DCHECK_OK(FileSystemFactoryRegistry::GetInstance()->RegisterFactory( |
| 858 | std::move(scheme), std::move(factory), std::move(finalizer), |
| 859 | /*defer_error=*/true)); |
| 860 | } |
| 861 | |
| 862 | namespace internal { |
| 863 | void* GetFileSystemRegistry() { return FileSystemFactoryRegistry::GetInstance(); } |
nothing calls this directly
no test coverage detected