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

Issue 13044019: Clean up entries left by crashes in the DownloadDB. (Closed)

Created:
7 years, 9 months ago by Randy Smith (Not in Mondays)
Modified:
7 years, 8 months ago
Reviewers:
benjhayden, brettw
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, browser-components-watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Clean up entries left by crashes in the DownloadDB. BUG=224385 R=benjhayden@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192879

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test push to base changes from. #

Patch Set 3 : Shift cleanup to DownloadDatabase. #

Total comments: 2

Patch Set 4 : Get around new DCHECK in MockDownloadItemImpl constructor. #

Total comments: 4

Patch Set 5 : Moved constants to private with FRIEND_TEST. #

Patch Set 6 : Shift nature of in progress cleanup. #

Patch Set 7 : Sync'd to r192579 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -127 lines) Patch
M chrome/browser/history/download_database.h View 1 2 3 4 5 6 3 chunks +45 lines, -6 lines 0 comments Download
M chrome/browser/history/download_database.cc View 1 2 3 4 5 6 7 chunks +105 lines, -89 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 6 3 chunks +59 lines, -4 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Randy Smith (Not in Mondays)
Ben, Scott: WDYT? Ben: Whole CL., primary reviewer. Scott: I'd like your eyes on the ...
7 years, 9 months ago (2013-03-27 19:31:54 UTC) #1
benjhayden
https://codereview.chromium.org/13044019/diff/1/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): https://codereview.chromium.org/13044019/diff/1/chrome/browser/history/download_database.cc#newcode455 chrome/browser/history/download_database.cc:455: statement.Run(); Do you want to call HistoryBackend::ScheduleCommit?
7 years, 9 months ago (2013-03-27 19:38:14 UTC) #2
Randy Smith (Not in Mondays)
https://codereview.chromium.org/13044019/diff/1/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): https://codereview.chromium.org/13044019/diff/1/chrome/browser/history/download_database.cc#newcode455 chrome/browser/history/download_database.cc:455: statement.Run(); On 2013/03/27 19:38:14, benjhayden_chromium wrote: > Do you ...
7 years, 9 months ago (2013-03-27 19:39:59 UTC) #3
Randy Smith (Not in Mondays)
Guys, I'm sorry, please do *not* review this CL--the basic approach is flawed. My apologies ...
7 years, 9 months ago (2013-03-27 19:45:41 UTC) #4
Randy Smith (Not in Mondays)
Ok, I'm ready for review. I've taken Scott off the reviewer list because IMO this ...
7 years, 9 months ago (2013-03-28 18:59:10 UTC) #5
benjhayden
lgtm
7 years, 9 months ago (2013-03-28 19:18:55 UTC) #6
benjhayden
LGTM, one suggestion for the test that you can either take or leave as you ...
7 years, 9 months ago (2013-03-28 19:21:03 UTC) #7
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/13044019/diff/14002/chrome/browser/history/history_unittest.cc File chrome/browser/history/history_unittest.cc (right): https://codereview.chromium.org/13044019/diff/14002/chrome/browser/history/history_unittest.cc#newcode500 chrome/browser/history/history_unittest.cc:500: results[0].interrupt_reason); On 2013/03/28 19:21:03, benjhayden_chromium wrote: > Do ...
7 years, 9 months ago (2013-03-28 19:40:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/13044019/27001
7 years, 8 months ago (2013-04-01 14:04:58 UTC) #9
commit-bot: I haz the power
Presubmit check for 13044019-27001 failed and returned exit status 1. INFO:root:Found 9 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-01 14:05:06 UTC) #10
Randy Smith (Not in Mondays)
Scott: Rubbertstamp?
7 years, 8 months ago (2013-04-01 14:41:30 UTC) #11
Randy Smith (Not in Mondays)
On 2013/04/01 14:41:30, rdsmith wrote: > Scott: Rubbertstamp? (for chrome/browser/history/*)
7 years, 8 months ago (2013-04-01 14:41:43 UTC) #12
sky
sky->brettw
7 years, 8 months ago (2013-04-01 15:04:44 UTC) #13
brettw
lgtm https://codereview.chromium.org/13044019/diff/27001/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): https://codereview.chromium.org/13044019/diff/27001/chrome/browser/history/download_database.cc#newcode436 chrome/browser/history/download_database.cc:436: void DownloadDatabase::CleanUpInProgressEntries() { I sort of prefer the ...
7 years, 8 months ago (2013-04-01 23:52:51 UTC) #14
Randy Smith (Not in Mondays)
Brett: One more quick look, specifically at PS4->5 for the reasons given below? https://codereview.chromium.org/13044019/diff/27001/chrome/browser/history/download_database.cc File ...
7 years, 8 months ago (2013-04-02 18:58:52 UTC) #15
brettw
Overall the new one seems slightly better to me so it seems fine. Note: Randy ...
7 years, 8 months ago (2013-04-05 19:50:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/13044019/51001
7 years, 8 months ago (2013-04-08 12:08:32 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 12:15:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/13044019/51001
7 years, 8 months ago (2013-04-08 18:44:59 UTC) #19
commit-bot: I haz the power
7 years, 8 months ago (2013-04-08 20:23:21 UTC) #20
Message was sent while issue was closed.
Change committed as 192879

Powered by Google App Engine
This is Rietveld 408576698