Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Issue 2292733002: Commit a new download to history db immediately on Android (Closed)

Created:
4 years, 3 months ago by qinmin
Modified:
4 years, 3 months ago
Reviewers:
asanka, sky
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Commit a new download to history db immediately on Android If browser is killed when a download is just created, the download is forever lost. User can no longer resume the download. And a temporary file is left forever on the disk. On desktop platforms, this may not be a big issue as users can easily go to the download dir to delete that file. However, it is not very straight forward to access the file maanger. This change commits the CreateDownload() to history db immediately on Android, rather than waiting for the scheduled time interval. This will greatly reduce the chance of the above problem, though very unlikely possible. BUG=636101 Committed: https://crrev.com/e8b7133f781db0fe40ba704b9655d16ba3c2be7e Cr-Commit-Position: refs/heads/master@{#415334}

Patch Set 1 #

Total comments: 2

Patch Set 2 : adding comments #

Total comments: 2

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M components/history/core/browser/history_backend.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
qinmin
PTAL
4 years, 3 months ago (2016-08-29 21:21:25 UTC) #2
sky
https://codereview.chromium.org/2292733002/diff/1/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2292733002/diff/1/components/history/core/browser/history_backend.cc#newcode1183 components/history/core/browser/history_backend.cc:1183: Commit(); Please add a comment here as to why ...
4 years, 3 months ago (2016-08-29 22:58:05 UTC) #3
qinmin
https://codereview.chromium.org/2292733002/diff/1/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2292733002/diff/1/components/history/core/browser/history_backend.cc#newcode1183 components/history/core/browser/history_backend.cc:1183: Commit(); On 2016/08/29 22:58:05, sky wrote: > Please add ...
4 years, 3 months ago (2016-08-30 00:08:06 UTC) #4
sky
LGTM https://codereview.chromium.org/2292733002/diff/20001/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2292733002/diff/20001/components/history/core/browser/history_backend.cc#newcode1186 components/history/core/browser/history_backend.cc:1186: // uncommitted download entry before browser kill. 'before ...
4 years, 3 months ago (2016-08-30 03:21:22 UTC) #5
benjhayden
I defer to sky since I don't remember this code.
4 years, 3 months ago (2016-08-30 04:20:40 UTC) #6
qinmin
https://codereview.chromium.org/2292733002/diff/20001/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2292733002/diff/20001/components/history/core/browser/history_backend.cc#newcode1186 components/history/core/browser/history_backend.cc:1186: // uncommitted download entry before browser kill. On 2016/08/30 ...
4 years, 3 months ago (2016-08-30 16:31:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2292733002/40001
4 years, 3 months ago (2016-08-30 16:31:58 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-30 17:19:11 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 17:21:00 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e8b7133f781db0fe40ba704b9655d16ba3c2be7e
Cr-Commit-Position: refs/heads/master@{#415334}

Powered by Google App Engine
This is Rietveld 408576698