From fdf3e13c44fd319d3cc186ea46eebfb0eafe53ad Mon Sep 17 00:00:00 2001 From: "lazyboy@chromium.org" Date: Wed, 31 Jul 2013 06:23:46 +0000 Subject: 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 --- content/browser/storage_partition_impl_unittest.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'content/browser/storage_partition_impl_unittest.cc') 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) { -- cgit v1.1