Commit 92268fd1 authored by Xing Liu's avatar Xing Liu Committed by Commit Bot

Download Home v2: Fix a crash when resuming download.

The download guid in DownloadInfo.java is not plumbed from OfflineItem.
This will cause DownloadItem.getId() or DownloadInfo.getDownloadGuid()
to return null.

Bug: 889369
Change-Id: I73fc66e16d2fa3b6e7a0e8d02dff9655f259f7d1
Reviewed-on: https://chromium-review.googlesource.com/1249835Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594863}
parent 135f2e13
...@@ -248,6 +248,7 @@ public final class DownloadInfo { ...@@ -248,6 +248,7 @@ public final class DownloadInfo {
return new DownloadInfo.Builder() return new DownloadInfo.Builder()
.setContentId(item.id) .setContentId(item.id)
.setDownloadGuid(item.id.id)
.setFileName(item.title) .setFileName(item.title)
.setFilePath(item.filePath) .setFilePath(item.filePath)
.setDescription(item.description) .setDescription(item.description)
......
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