Commit eba6823d authored by Victor Costan's avatar Victor Costan Committed by Commit Bot

AppCache: Remove unreachable code in AppCacheQuotaClient.

The QuotaClient interface now guarantees that clients only get called
with StorageTypes that they were registered for. In particular,
AppCacheQuotaClient is only called with kTemporary. This precondition
has been covered by a DCHECK for a while.

This CL removes a check that cannot be true under the current
QuotaClient interface.

Change-Id: I2057935df768f657f13a7f4297864ab62cc7ce1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500767
Commit-Queue: Victor Costan <pwnall@chromium.org>
Commit-Queue: enne <enne@chromium.org>
Auto-Submit: Victor Costan <pwnall@chromium.org>
Reviewed-by: default avatarenne <enne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821039}
parent 1d6c08c4
......@@ -151,11 +151,6 @@ void AppCacheQuotaClient::DeleteOriginData(const url::Origin& origin,
}
current_delete_request_callback_ = std::move(callback);
if (type != StorageType::kTemporary) {
DidDeleteAppCachesForOrigin(net::OK);
return;
}
GetUIThreadTaskRunner({})->PostTask(
FROM_HERE,
base::BindOnce(&AppCacheServiceImpl::DeleteAppCachesForOrigin, service_,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment