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

Unified Diff: components/browsing_data/storage_partition_http_cache_data_remover.cc

Issue 1465363002: [Storage] Android - ManageSpace UI, Important Origins, and CBD Dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Favicon support, and scroll indicators Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698