summaryrefslogtreecommitdiffstats
path: root/storage/browser/fileapi/obfuscated_file_util.h
diff options
context:
space:
mode:
authornhiroki <nhiroki@chromium.org>2014-11-07 01:56:38 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-07 09:57:35 +0000
commitac30625dc4b1e28a685936ad48b95e8db2140af5 (patch)
tree4375f00fb79564523cbad9c39b396c11b799b4b0 /storage/browser/fileapi/obfuscated_file_util.h
parent5fe22093e29bf4162bffebd0b81da57c98f43153 (diff)
downloadchromium_src-ac30625dc4b1e28a685936ad48b95e8db2140af5.zip
chromium_src-ac30625dc4b1e28a685936ad48b95e8db2140af5.tar.gz
chromium_src-ac30625dc4b1e28a685936ad48b95e8db2140af5.tar.bz2
FileSystem: Modify ObfucatedFileUtil to delete contents of the plugin private filesystem
Database destruction functions haven't correctly worked for plugin private filesystems since the filesystem has a different directory structure from other filesystems as follows: - PluginPrivate FS: /path/to/File System/Plugins/<origins>/<plugin_id>/<paths>/<file> - Other FS: /path/to/File System/<origins>/<storage type>/<paths>/<file> This patch tweaks those functions correctly to delete contents and metadata of the plugin private filesystem. NOTE: A part of tests is contributed by xhwang@chromium.org: https://codereview.chromium.org/580363003/ BUG=326429 TEST=content_unittests --gtest_filter=PluginPrivateFileSystemBackendTest.* TEST=content_unittests --gtest_filter=ObfuscatedFileUtilTest.* Review URL: https://codereview.chromium.org/579083004 Cr-Commit-Position: refs/heads/master@{#303213}
Diffstat (limited to 'storage/browser/fileapi/obfuscated_file_util.h')
-rw-r--r--storage/browser/fileapi/obfuscated_file_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/browser/fileapi/obfuscated_file_util.h b/storage/browser/fileapi/obfuscated_file_util.h
index d22d2e2..090e55e 100644
--- a/storage/browser/fileapi/obfuscated_file_util.h
+++ b/storage/browser/fileapi/obfuscated_file_util.h
@@ -197,7 +197,7 @@ class STORAGE_EXPORT_PRIVATE ObfuscatedFileUtil
// Deletes a directory database from the database list in the ObfuscatedFSFU
// and destroys the database on the disk.
- bool DestroyDirectoryDatabase(const GURL& origin,
+ void DestroyDirectoryDatabase(const GURL& origin,
const std::string& type_string);
// Computes a cost for storing a given file in the obfuscated FSFU.