Commit 21e78193 authored by Xing Liu's avatar Xing Liu Committed by Commit Bot

Download later: Fix a bug that scheduled downloads are started early.

The scheduled download currently will be started when we restart the
browser. The download schedule struct is not written to the db.

Bug: 1104673,1078454
Change-Id: I1f39f4517250e0aa2dcce4696feab90a94cb8851
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2294340Reviewed-by: default avatarShakti Sahu <shaktisahu@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#787800}
parent 2b435ab0
......@@ -428,6 +428,7 @@ DownloadDBEntry CreateDownloadDBEntryFromItem(const DownloadItemImpl& item) {
in_progress_info.metered = item.AllowMetered();
in_progress_info.bytes_wasted = item.GetBytesWasted();
in_progress_info.auto_resume_count = item.GetAutoResumeCount();
in_progress_info.download_schedule = item.GetDownloadSchedule();
download_info.in_progress_info = in_progress_info;
......
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