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

Unified Diff: webkit/browser/fileapi/test_mount_point_provider.cc

Issue 15959006: Deprecate FileSystemMountPointProvider::GetFileSystemRootPathOnFileThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « webkit/browser/fileapi/test_mount_point_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/test_mount_point_provider.cc
diff --git a/webkit/browser/fileapi/test_mount_point_provider.cc b/webkit/browser/fileapi/test_mount_point_provider.cc
index 20eeb581b9687c2e79e897d8c4221682c6b75aba..09735410b4370a1822e51943b7aef826e71fccf1 100644
--- a/webkit/browser/fileapi/test_mount_point_provider.cc
+++ b/webkit/browser/fileapi/test_mount_point_provider.cc
@@ -96,21 +96,7 @@ void TestMountPointProvider::ValidateFileSystemRoot(
FileSystemType type,
bool create,
const ValidateFileSystemCallback& callback) {
- // This won't be called unless we add test code that opens a test
- // filesystem by OpenFileSystem.
- NOTREACHED();
-}
-
-base::FilePath TestMountPointProvider::GetFileSystemRootPathOnFileThread(
- const FileSystemURL& url,
- bool create) {
- DCHECK_EQ(kFileSystemTypeTest, url.type());
- bool success = true;
- if (create)
- success = file_util::CreateDirectory(base_path_);
- else
- success = file_util::DirectoryExists(base_path_);
- return success ? base_path_ : base::FilePath();
+ callback.Run(base::PLATFORM_FILE_OK);
}
FileSystemFileUtil* TestMountPointProvider::GetFileUtil(FileSystemType type) {
@@ -157,6 +143,7 @@ FileSystemOperation* TestMountPointProvider::CreateFileSystemOperation(
scoped_ptr<FileSystemOperationContext> operation_context(
new FileSystemOperationContext(context));
operation_context->set_update_observers(observers_);
+ operation_context->set_root_path(base_path_);
return new LocalFileSystemOperation(context, operation_context.Pass());
}
« no previous file with comments | « webkit/browser/fileapi/test_mount_point_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698