cleanup: let the handler own the file system implementation
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic7c31237bd5440b2cfa171df93545a63708e404c
diff --git a/cleanup/cleanup.cpp b/cleanup/cleanup.cpp
index 278b079..baf5053 100644
--- a/cleanup/cleanup.cpp
+++ b/cleanup/cleanup.cpp
@@ -27,9 +27,11 @@
std::unique_ptr<blobs::GenericBlobInterface>
FileCleanupHandler::CreateCleanupHandler(
- const std::string& blobId, const std::vector<std::string>& files)
+ const std::string& blobId, const std::vector<std::string>& files,
+ std::unique_ptr<FileSystemInterface> helper)
{
- return std::make_unique<FileCleanupHandler>(blobId, files);
+ return std::make_unique<FileCleanupHandler>(blobId, files,
+ std::move(helper));
}
bool FileCleanupHandler::canHandleBlob(const std::string& path)