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

Issue 579083004: FileSystem: Modify ObfucatedFileUtil to delete contents of the plugin private filesystem (Closed)

Created:
6 years, 3 months ago by nhiroki
Modified:
6 years, 1 month ago
Reviewers:
kinuko, tzik
CC:
chromium-reviews, darin-cc_chromium.org, jam, kinuko+fileapi, tzik, xhwang
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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.* Committed: https://crrev.com/ac30625dc4b1e28a685936ad48b95e8db2140af5 Cr-Commit-Position: refs/heads/master@{#303213}

Patch Set 1 : #

Patch Set 2 : fix for win build #

Total comments: 5

Patch Set 3 : address xhwang@'s comment #

Total comments: 8

Patch Set 4 : remake #

Total comments: 6

Patch Set 5 : rebase #

Patch Set 6 : review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -54 lines) Patch
M content/browser/fileapi/obfuscated_file_util_unittest.cc View 1 2 3 4 5 2 chunks +121 lines, -2 lines 0 comments Download
M content/browser/fileapi/plugin_private_file_system_backend_unittest.cc View 1 2 3 4 8 chunks +138 lines, -12 lines 0 comments Download
M storage/browser/fileapi/obfuscated_file_util.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M storage/browser/fileapi/obfuscated_file_util.cc View 1 2 3 4 5 6 chunks +35 lines, -39 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
nhiroki
tzik@, can you review this? Thanks!
6 years, 3 months ago (2014-09-22 10:31:54 UTC) #4
xhwang
drive-by nits... https://codereview.chromium.org/579083004/diff/60001/storage/browser/fileapi/obfuscated_file_util.cc File storage/browser/fileapi/obfuscated_file_util.cc (right): https://codereview.chromium.org/579083004/diff/60001/storage/browser/fileapi/obfuscated_file_util.cc#newcode920 storage/browser/fileapi/obfuscated_file_util.cc:920: delete database; If you use ScopedPtrHashMap for ...
6 years, 3 months ago (2014-09-22 16:41:25 UTC) #5
nhiroki
Thank you for reviewing! Updated. https://codereview.chromium.org/579083004/diff/60001/storage/browser/fileapi/obfuscated_file_util.cc File storage/browser/fileapi/obfuscated_file_util.cc (right): https://codereview.chromium.org/579083004/diff/60001/storage/browser/fileapi/obfuscated_file_util.cc#newcode920 storage/browser/fileapi/obfuscated_file_util.cc:920: delete database; On 2014/09/22 ...
6 years, 3 months ago (2014-09-24 06:00:32 UTC) #6
nhiroki
tzik@: ping?
6 years, 3 months ago (2014-09-24 09:56:59 UTC) #7
kinuko
Drive-by. This code looks good (looks to work) while I have a few design-related comments. ...
6 years, 3 months ago (2014-09-24 15:51:37 UTC) #9
tzik
https://codereview.chromium.org/579083004/diff/80001/storage/browser/fileapi/obfuscated_file_util.cc File storage/browser/fileapi/obfuscated_file_util.cc (right): https://codereview.chromium.org/579083004/diff/80001/storage/browser/fileapi/obfuscated_file_util.cc#newcode919 storage/browser/fileapi/obfuscated_file_util.cc:919: directories_.erase(iter++); As we chatted locally. (Sorry, I forget to ...
6 years, 3 months ago (2014-09-24 18:48:12 UTC) #11
nhiroki
Thank you for reviewing. Can you take another look? (CL title and description will be ...
6 years, 3 months ago (2014-09-25 10:34:16 UTC) #13
kinuko
lgtm (assuming tzik@ will take a closer look :)) https://codereview.chromium.org/579083004/diff/120001/storage/browser/fileapi/obfuscated_file_util.cc File storage/browser/fileapi/obfuscated_file_util.cc (right): https://codereview.chromium.org/579083004/diff/120001/storage/browser/fileapi/obfuscated_file_util.cc#newcode881 storage/browser/fileapi/obfuscated_file_util.cc:881: ...
6 years, 2 months ago (2014-09-25 16:33:01 UTC) #14
tzik
lgtm
6 years, 2 months ago (2014-09-26 02:35:28 UTC) #15
nhiroki
Sorry for my super delayed reply... https://codereview.chromium.org/579083004/diff/120001/storage/browser/fileapi/obfuscated_file_util.cc File storage/browser/fileapi/obfuscated_file_util.cc (right): https://codereview.chromium.org/579083004/diff/120001/storage/browser/fileapi/obfuscated_file_util.cc#newcode881 storage/browser/fileapi/obfuscated_file_util.cc:881: GetDirectoryForOrigin(origin, false, NULL).value()); ...
6 years, 1 month ago (2014-11-07 08:15:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/579083004/180001
6 years, 1 month ago (2014-11-07 09:05:23 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:180001)
6 years, 1 month ago (2014-11-07 09:56:48 UTC) #20
commit-bot: I haz the power
6 years, 1 month ago (2014-11-07 09:58:04 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ac30625dc4b1e28a685936ad48b95e8db2140af5
Cr-Commit-Position: refs/heads/master@{#303213}

Powered by Google App Engine
This is Rietveld 408576698