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

Unified Diff: chrome/browser/browsing_data_remover.cc

Issue 10701094: Don't keep file system directories around if they contain unrelated files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: chrome/browser/browsing_data_remover.cc
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index 118520296663f6e7f4aa7d18894bb64ef6e47504..b22438caa5b9d5a7f374c19e8e6e25561785889a 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -773,7 +773,7 @@ void BrowsingDataRemover::OnGotQuotaManagedOrigins(
origin->GetOrigin(), type,
BrowsingDataRemover::GenerateQuotaClientMask(remove_mask_),
base::Bind(&BrowsingDataRemover::OnQuotaManagedOriginDeletion,
- base::Unretained(this)));
+ base::Unretained(this), origin->GetOrigin(), type));
}
--quota_managed_storage_types_to_delete_count_;
@@ -781,12 +781,13 @@ void BrowsingDataRemover::OnGotQuotaManagedOrigins(
}
void BrowsingDataRemover::OnQuotaManagedOriginDeletion(
+ const GURL& origin,
+ quota::StorageType type,
quota::QuotaStatusCode status) {
DCHECK_GT(quota_managed_origins_to_delete_count_, 0);
if (status != quota::kQuotaStatusOk) {
- // TODO(mkwst): We should add the GURL to StatusCallback; this is a pretty
- // worthless error message otherwise.
- DLOG(ERROR) << "Couldn't remove origin. Status: " << status;
+ DLOG(ERROR) << "Couldn't remove data of type " << type << " for origin "
+ << origin << ". Status: " << status;
}
--quota_managed_origins_to_delete_count_;

Powered by Google App Engine
This is Rietveld 408576698