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

Issue 2727553006: [sql] Convert thumbnails and top-sites databases to auto-recovery. (Closed)

Created:
3 years, 9 months ago by Scott Hess - ex-Googler
Modified:
3 years, 8 months ago
Reviewers:
Ilya Sherman, sky, pwnall
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sql] Convert thumbnails and top-sites databases to auto-recovery. sql::Recovery::RecoverDatabase() seems to work pretty well for Shortcuts, so backfill to use it for these two databases. Histograms indicate that there's nothing really special about these databases which demands special treatment. BUG=240396, 597785 Review-Url: https://codereview.chromium.org/2727553006 Cr-Commit-Position: refs/heads/master@{#464213} Committed: https://chromium.googlesource.com/chromium/src/+/5207e145f18d167484e8941c7fa4f6b38224bc76

Patch Set 1 #

Patch Set 2 : git-cl-format #

Total comments: 22

Patch Set 3 : rebase #

Patch Set 4 : tests and review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -385 lines) Patch
M components/history/core/browser/thumbnail_database.cc View 6 chunks +35 lines, -205 lines 0 comments Download
M components/history/core/browser/thumbnail_database_unittest.cc View 1 2 3 1 chunk +2 lines, -28 lines 0 comments Download
M components/history/core/browser/top_sites_database.cc View 1 2 3 7 chunks +44 lines, -93 lines 0 comments Download
M components/history/core/browser/top_sites_database_unittest.cc View 1 2 3 2 chunks +5 lines, -35 lines 0 comments Download
M sql/recovery.h View 1 2 1 chunk +18 lines, -8 lines 0 comments Download
M sql/recovery.cc View 1 2 9 chunks +43 lines, -12 lines 0 comments Download
M sql/recovery_unittest.cc View 1 chunk +48 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 8 chunks +27 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (21 generated)
Scott Hess - ex-Googler
git-cl-format
3 years, 9 months ago (2017-03-02 00:25:17 UTC) #1
Scott Hess - ex-Googler
Here's another sql::Recovery cl. I realize that most of the change is over in the ...
3 years, 9 months ago (2017-03-02 00:54:29 UTC) #7
pwnall
On 2017/03/02 00:54:29, Scott Hess wrote: > Here's another sql::Recovery cl. I realize that most ...
3 years, 9 months ago (2017-03-02 13:05:22 UTC) #10
Scott Hess - ex-Googler
On 2017/03/02 13:05:22, pwnall wrote: > On 2017/03/02 00:54:29, Scott Hess wrote: > > Here's ...
3 years, 9 months ago (2017-03-03 19:52:18 UTC) #11
pwnall
Can you please address the failing tests? https://codereview.chromium.org/2727553006/diff/20001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/2727553006/diff/20001/components/history/core/browser/thumbnail_database.cc#newcode87 components/history/core/browser/thumbnail_database.cc:87: // Version ...
3 years, 9 months ago (2017-03-04 01:35:32 UTC) #12
Scott Hess - ex-Googler
rebase
3 years, 9 months ago (2017-03-07 01:28:14 UTC) #13
Scott Hess - ex-Googler
tests and review comments
3 years, 9 months ago (2017-03-07 01:33:58 UTC) #14
Scott Hess - ex-Googler
I'm going to think on the "Should there be a histogram to track sizes, and ...
3 years, 9 months ago (2017-03-07 01:34:31 UTC) #16
pwnall
https://codereview.chromium.org/2727553006/diff/20001/components/history/core/browser/thumbnail_database.cc File components/history/core/browser/thumbnail_database.cc (right): https://codereview.chromium.org/2727553006/diff/20001/components/history/core/browser/thumbnail_database.cc#newcode87 components/history/core/browser/thumbnail_database.cc:87: // Version 6: 610f923b/r152367 by pkotwicz@chromium.org on 2012-08-20 (depr.) ...
3 years, 9 months ago (2017-03-16 18:55:44 UTC) #24
pwnall
On 2017/03/07 01:34:31, Scott Hess wrote: > I'm going to think on the "Should there ...
3 years, 9 months ago (2017-03-16 18:57:31 UTC) #25
Scott Hess - ex-Googler
On 2017/03/16 18:57:31, pwnall wrote: > On 2017/03/07 01:34:31, Scott Hess wrote: > > I'm ...
3 years, 8 months ago (2017-03-31 22:43:44 UTC) #26
pwnall
On 2017/03/31 22:43:44, Scott Hess wrote: > On 2017/03/16 18:57:31, pwnall wrote: > > On ...
3 years, 8 months ago (2017-03-31 22:45:48 UTC) #27
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/2727553006/60001
3 years, 8 months ago (2017-04-12 17:59:44 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/409440)
3 years, 8 months ago (2017-04-12 18:12:29 UTC) #31
Scott Hess - ex-Googler
On 2017/04/12 18:12:29, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-12 18:23:29 UTC) #33
sky
LGTM
3 years, 8 months ago (2017-04-12 19:40:47 UTC) #34
Ilya Sherman
histograms.xml lgtm, thanks for the cleanup
3 years, 8 months ago (2017-04-12 20:20:13 UTC) #35
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/2727553006/60001
3 years, 8 months ago (2017-04-12 20:33:02 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 23:56:39 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5207e145f18d167484e8941c7fa4...

Powered by Google App Engine
This is Rietveld 408576698