diff options
author | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-28 01:12:18 +0000 |
---|---|---|
committer | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-28 01:12:18 +0000 |
commit | 054702d224472e01faf94482e2219ff1cd2b1aa7 (patch) | |
tree | 4e4a2074c84c7acf8a31ff40af9eb372b0037c0d /webkit/fileapi/file_system_usage_cache.cc | |
parent | 1ebd7b1c556b39785a7e7fb80e959caf2e43fe93 (diff) | |
download | chromium_src-054702d224472e01faf94482e2219ff1cd2b1aa7.zip chromium_src-054702d224472e01faf94482e2219ff1cd2b1aa7.tar.gz chromium_src-054702d224472e01faf94482e2219ff1cd2b1aa7.tar.bz2 |
Code to turn on obfuscated filesystems for all, and to migrate all existing users automatically whenever they next access the filesystem or check its quota usage.
Avi, I've added you just for the ChildProcessSecurity stuff in worker_process_host.cc and browser_render_process_host.cc. Drop me a line if you need to know what's going on there. This is for M13, so please ask soon.
BUG=none
TEST=unit tests
Review URL: http://codereview.chromium.org/6976017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_usage_cache.cc')
-rw-r--r-- | webkit/fileapi/file_system_usage_cache.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_usage_cache.cc b/webkit/fileapi/file_system_usage_cache.cc index 0445e72..b87620b 100644 --- a/webkit/fileapi/file_system_usage_cache.cc +++ b/webkit/fileapi/file_system_usage_cache.cc @@ -97,6 +97,7 @@ int64 FileSystemUsageCache::Read(const FilePath& usage_file_path, uint32* dirty) { char buffer[kUsageFileSize]; const char *header; + DCHECK(!usage_file_path.empty()); if (kUsageFileSize != file_util::ReadFile(usage_file_path, buffer, kUsageFileSize)) return -1; @@ -126,6 +127,7 @@ int FileSystemUsageCache::Write(const FilePath& usage_file_path, write_pickle.WriteUInt32(dirty); write_pickle.WriteInt64(fs_usage); + DCHECK(!usage_file_path.empty()); FilePath temporary_usage_file_path; file_util::CreateTemporaryFileInDir(usage_file_path.DirName(), &temporary_usage_file_path); |