Commit 840354fa authored by Xing Liu's avatar Xing Liu Committed by Commit Bot

Download on Android Q: Remove a DCHECK in CreateReservation.

When resuming a download, the suggested path can be content URI. This
will hit a DCHECK in CreateReservation.

Bug: 1045642
Change-Id: I61c452afafbbc9606f747c84ff18e6b9dc9a0fb6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062759Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742270}
parent 5c7e0874
......@@ -325,8 +325,6 @@ PathValidationResult ValidatePathAndResolveConflicts(
// - Returns the result of creating the path reservation.
PathValidationResult CreateReservation(const CreateReservationInfo& info,
base::FilePath* reserved_path) {
DCHECK(info.suggested_path.IsAbsolute());
// Create a reservation map if one doesn't exist. It will be automatically
// deleted when all the reservations are revoked.
if (g_reservation_map == NULL)
......
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