DescriptionAllow user to pause/resume incognito downloads
This CL includes the following fixes:
1. When an incognito download is paused, Chrome currently shows a cancel
button on Android.
There is no way for user to resume the download.
However, user can pause and resume incognito download on desktop chrome.
This change fixes the above behavior to allow paused incognito download
to resume.
It also fixes an issue that wrong profile is used when canceling/pausing
incognito downloads.
2.The CL fixes the usage of isResumable(bad naming) field in DownloadSharedPreferenceEntry.
When a download starts, isResumable is set to !isOffTheRecord.
And this CL renames isResumable to isPublic in
DownloadSharedPreferenceEntry.
The isPublic field allows chrome to determine if a download should fail when
browser is killed.
3. When a download is paused, we still need an isResumable(correct naming)
variable due to the reason of interruption.
So this CL separates download interruption handling from download
pausing in DownloadManagerService.
BUG=627613
Committed: https://crrev.com/e27efd43ed0ee9ed0c45cd88293536697ab747f5
Cr-Commit-Position: refs/heads/master@{#407640}
Patch Set 1 #
Total comments: 2
Patch Set 2 : use isOffTheRecord instead of isPublic #
Total comments: 2
Patch Set 3 : fix tests #Patch Set 4 : fix clang warning #Messages
Total messages: 29 (15 generated)
|