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

Unified Diff: webkit/fileapi/sandbox_mount_point_provider.cc

Issue 7608018: Handle inconsistency between DB and Files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 4 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/sandbox_mount_point_provider.cc
diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc
index 920a8209831775d62b745735eac15f0e39838f7f..bef1124de91d193b448e8aea653f91e0ae954a9e 100644
--- a/webkit/fileapi/sandbox_mount_point_provider.cc
+++ b/webkit/fileapi/sandbox_mount_point_provider.cc
@@ -620,6 +620,15 @@ void SandboxMountPointProvider::EndUpdateOriginOnFileThread(
FileSystemUsageCache::DecrementDirty(usage_file_path);
}
+void SandboxMountPointProvider::MarkDirtyOriginOnFileThread(
+ const GURL& origin_url, fileapi::FileSystemType type) {
+ DCHECK(type == fileapi::kFileSystemTypeTemporary ||
+ type == fileapi::kFileSystemTypePersistent);
+ FilePath usage_file_path = GetUsageCachePathForOriginAndType(
+ origin_url, type);
+ FileSystemUsageCache::IncrementDirty(usage_file_path);
+}
+
FileSystemFileUtil* SandboxMountPointProvider::GetFileSystemFileUtil() {
return sandbox_file_util_.get();
}

Powered by Google App Engine
This is Rietveld 408576698