Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: components/filesystem/file_system_impl.cc

Issue 1935863002: mojo: Fix leveldb unittests by making fs::Directories cloneable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Gyp continues to exist. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/filesystem/file_system_impl.h ('k') | components/filesystem/filesystem.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « components/filesystem/file_system_impl.h ('k') | components/filesystem/filesystem.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698