diff options
author | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 06:23:46 +0000 |
---|---|---|
committer | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 06:23:46 +0000 |
commit | fdf3e13c44fd319d3cc186ea46eebfb0eafe53ad (patch) | |
tree | b0453be082f8e30e557da7bd097b8fc189e014e9 /content/browser/storage_partition_impl_unittest.cc | |
parent | f7f61087146eff6339cb5a5ab35ae6ad486b30aa (diff) | |
download | chromium_src-fdf3e13c44fd319d3cc186ea46eebfb0eafe53ad.zip chromium_src-fdf3e13c44fd319d3cc186ea46eebfb0eafe53ad.tar.gz chromium_src-fdf3e13c44fd319d3cc186ea46eebfb0eafe53ad.tar.bz2 |
Add support for selectively deleting different bits of StoragePartition related data.
Reland r213582 after fixing memory leak (via LeakSanitizer).
This CL makes the deletion work similar to BrowsingDataRemover in chrome/.
This CL is a result of the discussion in crrev.com/16188005
BUG=174763,180118,264188
Test=built: libwebviewchromium, manually tested with browser plugin guest's storage partition, checked clearing cookies and local storage data.
Ran unit_tests target with LeakSanitizer/"detect_leaks=1"
Review URL: https://chromiumcodereview.appspot.com/20543002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/storage_partition_impl_unittest.cc')
-rw-r--r-- | content/browser/storage_partition_impl_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/browser/storage_partition_impl_unittest.cc b/content/browser/storage_partition_impl_unittest.cc index 36af638..0492335 100644 --- a/content/browser/storage_partition_impl_unittest.cc +++ b/content/browser/storage_partition_impl_unittest.cc @@ -98,8 +98,10 @@ class StoragePartitionShaderClearTest : public testing::Test { void ClearData(content::StoragePartitionImpl* sp, const base::Closure& cb) { base::Time time; - sp->AsyncClearDataBetween(content::StoragePartition::kShaderStorage, - time, time, cb); + sp->ClearDataForRange( + StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE, + StoragePartition::kAllStorage, + time, time, cb); } TEST_F(StoragePartitionShaderClearTest, ClearShaderCache) { |