| Index: components/browsing_data/storage_partition_http_cache_data_remover.cc
|
| diff --git a/components/browsing_data/storage_partition_http_cache_data_remover.cc b/components/browsing_data/storage_partition_http_cache_data_remover.cc
|
| index 773718db66ecd89f87ff57445986d3346760413c..a1cbaf211940c342f61c55ea1ce8b1df520ec4ae 100644
|
| --- a/components/browsing_data/storage_partition_http_cache_data_remover.cc
|
| +++ b/components/browsing_data/storage_partition_http_cache_data_remover.cc
|
| @@ -178,15 +178,13 @@ void StoragePartitionHttpCacheDataRemover::DoClearCache(int rv) {
|
| // |cache_| can be null if it cannot be initialized.
|
| if (cache_) {
|
| if (!url_predicate_.is_null()) {
|
| - (new ConditionalCacheDeletionHelper(
|
| - cache_,
|
| - ConditionalCacheDeletionHelper::CreateURLAndTimeCondition(
|
| - url_predicate_,
|
| - delete_begin_,
|
| - delete_end_)))->DeleteAndDestroySelfWhenFinished(
|
| - base::Bind(
|
| - &StoragePartitionHttpCacheDataRemover::DoClearCache,
|
| - base::Unretained(this)));
|
| + rv = (new ConditionalCacheDeletionHelper(
|
| + cache_,
|
| + ConditionalCacheDeletionHelper::CreateURLAndTimeCondition(
|
| + url_predicate_, delete_begin_, delete_end_)))
|
| + ->DeleteAndDestroySelfWhenFinished(base::Bind(
|
| + &StoragePartitionHttpCacheDataRemover::DoClearCache,
|
| + base::Unretained(this)));
|
| } else if (delete_begin_.is_null() && delete_end_.is_max()) {
|
| rv = cache_->DoomAllEntries(base::Bind(
|
| &StoragePartitionHttpCacheDataRemover::DoClearCache,
|
|
|