| Index: components/filesystem/file_system_impl.cc
|
| diff --git a/components/filesystem/file_system_impl.cc b/components/filesystem/file_system_impl.cc
|
| index 750a2491c915e8fd89fdca9975836140dd0a115a..44f9333940577d73ff353d065944050dd8166eeb 100644
|
| --- a/components/filesystem/file_system_impl.cc
|
| +++ b/components/filesystem/file_system_impl.cc
|
| @@ -42,8 +42,10 @@ void FileSystemImpl::OpenTempDirectory(
|
| CHECK(temp_dir->CreateUniqueTempDir());
|
|
|
| base::FilePath path = temp_dir->path();
|
| + scoped_refptr<SharedTempDir> shared_temp_dir =
|
| + new SharedTempDir(std::move(temp_dir));
|
| new DirectoryImpl(
|
| - std::move(directory), path, std::move(temp_dir), lock_table_);
|
| + std::move(directory), path, std::move(shared_temp_dir), lock_table_);
|
| callback.Run(FileError::OK);
|
| }
|
|
|
| @@ -55,8 +57,11 @@ void FileSystemImpl::OpenPersistentFileSystem(
|
| if (!base::PathExists(path))
|
| base::CreateDirectory(path);
|
|
|
| + scoped_refptr<SharedTempDir> shared_temp_dir =
|
| + new SharedTempDir(std::move(temp_dir));
|
| +
|
| new DirectoryImpl(
|
| - std::move(directory), path, std::move(temp_dir), lock_table_);
|
| + std::move(directory), path, std::move(shared_temp_dir), lock_table_);
|
| callback.Run(FileError::OK);
|
| }
|
|
|
|
|