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

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

Issue 21116008: FileAPI: Move FileSystemQuotaUtil related functions into SandboxContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 7 years, 5 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/browser/fileapi/sandbox_file_system_test_helper.cc
diff --git a/webkit/browser/fileapi/sandbox_file_system_test_helper.cc b/webkit/browser/fileapi/sandbox_file_system_test_helper.cc
index b57cf0ea555ebe04f08fa2d8e297eafcf3637ecb..66205176c551379eb720e501eef5b1306f226519 100644
--- a/webkit/browser/fileapi/sandbox_file_system_test_helper.cc
+++ b/webkit/browser/fileapi/sandbox_file_system_test_helper.cc
@@ -62,7 +62,7 @@ void SandboxFileSystemTestHelper::TearDown() {
}
base::FilePath SandboxFileSystemTestHelper::GetOriginRootPath() {
- return file_system_context_->sandbox_backend()->
+ return file_system_context_->sandbox_context()->
GetBaseDirectoryForOriginAndType(origin_, type_, false);
}
@@ -82,7 +82,7 @@ base::FilePath SandboxFileSystemTestHelper::GetLocalPathFromASCII(
base::FilePath SandboxFileSystemTestHelper::GetUsageCachePath() const {
return file_system_context_->
- sandbox_backend()->GetUsageCachePathForOriginAndType(origin_, type_);
+ sandbox_context()->GetUsageCachePathForOriginAndType(origin_, type_);
}
FileSystemURL SandboxFileSystemTestHelper::CreateURL(
@@ -130,8 +130,7 @@ void SandboxFileSystemTestHelper::AddFileChangeObserver(
}
FileSystemUsageCache* SandboxFileSystemTestHelper::usage_cache() {
- return file_system_context()->sandbox_backend()->
- sandbox_context_->usage_cache();
+ return file_system_context()->sandbox_context()->usage_cache();
}
void SandboxFileSystemTestHelper::SetUpFileSystem() {
@@ -142,7 +141,7 @@ void SandboxFileSystemTestHelper::SetUpFileSystem() {
DCHECK(file_util_);
// Prepare the origin's root directory.
- file_system_context_->sandbox_backend()->
+ file_system_context_->sandbox_context()->
GetBaseDirectoryForOriginAndType(origin_, type_, true /* create */);
// Initialize the usage cache file.
« no previous file with comments | « webkit/browser/fileapi/sandbox_file_system_backend_unittest.cc ('k') | webkit/browser/fileapi/sandbox_quota_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698