summaryrefslogtreecommitdiffstats
path: root/content/browser/storage_partition_impl_unittest.cc
diff options
context:
space:
mode:
authorlazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 06:23:46 +0000
committerlazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 06:23:46 +0000
commitfdf3e13c44fd319d3cc186ea46eebfb0eafe53ad (patch)
treeb0453be082f8e30e557da7bd097b8fc189e014e9 /content/browser/storage_partition_impl_unittest.cc
parentf7f61087146eff6339cb5a5ab35ae6ad486b30aa (diff)
downloadchromium_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.cc6
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) {