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

Unified Diff: webkit/fileapi/local_file_system_test_helper.cc

Issue 11787028: New FileSystemURL cracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Couple of nits I noticed Created 7 years, 11 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
Index: webkit/fileapi/local_file_system_test_helper.cc
diff --git a/webkit/fileapi/local_file_system_test_helper.cc b/webkit/fileapi/local_file_system_test_helper.cc
index 2de3aca3d867334bb2a3a7c19b8ea812cd6accd1..3fae10ded5d8450a8a90e667b95f28ca80034f90 100644
--- a/webkit/fileapi/local_file_system_test_helper.cc
+++ b/webkit/fileapi/local_file_system_test_helper.cc
@@ -52,8 +52,8 @@ void LocalFileSystemTestOriginHelper::SetUp(
// Prepare the origin's root directory.
file_system_context_->GetMountPointProvider(type_)->
- GetFileSystemRootPathOnFileThread(
- FileSystemURL(origin_, type_, FilePath()), true /* create */);
+ GetFileSystemRootPathOnFileThread(CreateURL(FilePath()),
+ true /* create */);
// Initialize the usage cache file.
FilePath usage_cache_path = GetUsageCachePath();
@@ -87,8 +87,8 @@ void LocalFileSystemTestOriginHelper::SetUp(
// Prepare the origin's root directory.
FileSystemMountPointProvider* mount_point_provider =
file_system_context_->GetMountPointProvider(type_);
- mount_point_provider->GetFileSystemRootPathOnFileThread(
- FileSystemURL(origin_, type_, FilePath()), true /* create */);
+ mount_point_provider->GetFileSystemRootPathOnFileThread(CreateURL(FilePath()),
+ true /* create */);
if (file_util)
file_util_ = file_util;
@@ -110,8 +110,7 @@ void LocalFileSystemTestOriginHelper::TearDown() {
FilePath LocalFileSystemTestOriginHelper::GetOriginRootPath() const {
return file_system_context_->GetMountPointProvider(type_)->
- GetFileSystemRootPathOnFileThread(
- FileSystemURL(origin_, type_, FilePath()), false);
+ GetFileSystemRootPathOnFileThread(CreateURL(FilePath()), false);
}
FilePath LocalFileSystemTestOriginHelper::GetLocalPath(const FilePath& path) {
@@ -137,7 +136,7 @@ FilePath LocalFileSystemTestOriginHelper::GetUsageCachePath() const {
FileSystemURL LocalFileSystemTestOriginHelper::CreateURL(const FilePath& path)
const {
- return FileSystemURL(origin_, type_, path);
+ return file_system_context_->CreateCrackedFileSystemURL(origin_, type_, path);
}
base::PlatformFileError LocalFileSystemTestOriginHelper::SameFileUtilCopy(

Powered by Google App Engine
This is Rietveld 408576698