Description[Downloads] Ask DownloadHistory if a download was from history.
Observers of downloads currently assume that any download that is
created in the IN_PROGRESS state must be a new download, while all
others were restored from history. Pending changes to how downloads are
created in response to failed requests will mean that this assumption
will no longer hold.
This CL adds a WasRestoredFromHistory() method to DownloadHistory which
determines whether a given download was restored from history.
BUG=7648
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270749
Patch Set 1 : #
Total comments: 8
Patch Set 2 : Move responsibility of determining whether to show a download in the UI to DownloadItemModel #
Total comments: 19
Patch Set 3 : Address comments. Now depends on https://codereview.chromium.org/248713004/ #Patch Set 4 : Merge with r269779 #Patch Set 5 : Fix build #Patch Set 6 : Fix build #Messages
Total messages: 11 (0 generated)
|