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

Unified Diff: webkit/fileapi/quota_file_util.cc

Issue 6997008: Fix QuotaFileUtil to write .usage into the same directory as "chrome-", not under "chrome-*". (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Mofified tests. Created 9 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 | « no previous file | webkit/fileapi/quota_file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/quota_file_util.cc
diff --git a/webkit/fileapi/quota_file_util.cc b/webkit/fileapi/quota_file_util.cc
index 820b6a8d5b3f308f97de8ef0f4f18943cb0c0c9c..626aecfdcd55883c42277b9476c6aa1aed8d6941 100644
--- a/webkit/fileapi/quota_file_util.cc
+++ b/webkit/fileapi/quota_file_util.cc
@@ -10,6 +10,7 @@
#include "webkit/fileapi/file_system_operation_context.h"
#include "webkit/fileapi/file_system_path_manager.h"
#include "webkit/fileapi/file_system_usage_cache.h"
+#include "webkit/fileapi/sandbox_mount_point_provider.h"
namespace fileapi {
@@ -43,8 +44,8 @@ static bool CanCopy(
static FilePath InitUsageFile(FileSystemOperationContext* fs_context) {
FilePath base_path = fs_context->file_system_context()->path_manager()->
- ValidateFileSystemRootAndGetPathOnFileThread(fs_context->src_origin_url(),
- fs_context->src_type(), FilePath(), false);
+ sandbox_provider()->GetBaseDirectoryForOriginAndType(
+ fs_context->src_origin_url(), fs_context->src_type());
FilePath usage_file_path =
base_path.AppendASCII(FileSystemUsageCache::kUsageFileName);
« no previous file with comments | « no previous file | webkit/fileapi/quota_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698