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

Issue 235863023: Eliminate the archived history database and clean up related code. (Closed)

Created:
6 years, 8 months ago by engedy
Modified:
6 years, 6 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, browser-components-watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Eliminate the archived history database and clean up related code. More specifically, this change list: * Removes all code related to the archived history database, and removes all mentions of it from comments. * Adds some code to purge the legacy database file on disk on first start-up, plus a unit test to check that this works. * Removes a migration path from M17 which was responsible for migrating some components, all of which have been unimplemented since then, except for the archived database, which, however, is now being removed. * Removes a tiny amount of code and some mentions of a "supplementary URL index" on the URLs table (this was unimplemented a long time ago). This is needed because otherwise some updated comments would be confusing. BUG=359377 TBR=pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275159

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Rebased, improved comments, fixed minor formatting nits. #

Total comments: 2

Patch Set 3 : Addressed comment, rebased. #

Patch Set 4 : Rename a few outstanding instances of "archived" to "expired". #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -841 lines) Patch
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/browser/history/archived_database.h View 1 chunk +0 lines, -74 lines 0 comments Download
D chrome/browser/history/archived_database.cc View 1 chunk +0 lines, -151 lines 0 comments Download
M chrome/browser/history/expire_history_backend.h View 1 2 10 chunks +30 lines, -53 lines 0 comments Download
M chrome/browser/history/expire_history_backend.cc View 1 2 16 chunks +22 lines, -137 lines 0 comments Download
M chrome/browser/history/expire_history_backend_unittest.cc View 1 2 3 13 chunks +36 lines, -106 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 5 chunks +6 lines, -13 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 22 chunks +33 lines, -137 lines 2 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 7 chunks +6 lines, -32 lines 0 comments Download
M chrome/browser/history/history_database.h View 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/history/history_database.cc View 4 chunks +1 line, -16 lines 0 comments Download
M chrome/browser/history/history_notifications.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/history/history_notifications.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_querying_unittest.cc View 1 2 1 chunk +0 lines, -60 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/history/typed_url_syncable_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/typed_url_syncable_service.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/history/url_database.h View 1 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/history/url_database.cc View 1 2 3 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/favicon_cache.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
A + chrome/test/data/History/archived_history.4.sql View 1 chunk +2 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
engedy
@Scott: please take a look. @Brett, Peter: FYI. https://codereview.chromium.org/235863023/diff/30001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (left): https://codereview.chromium.org/235863023/diff/30001/chrome/browser/history/history_backend.cc#oldcode1313 chrome/browser/history/history_backend.cc:1313: if ...
6 years, 8 months ago (2014-04-16 18:08:09 UTC) #1
sky
I'm redirecting this to Brett +brettw -sky
6 years, 8 months ago (2014-04-16 19:18:07 UTC) #2
Peter Kasting
Hold off on this for a couple days as I'm about to land some nontrivial ...
6 years, 8 months ago (2014-04-16 19:48:50 UTC) #3
engedy
On 2014/04/16 19:48:50, Peter Kasting wrote: > Hold off on this for a couple days ...
6 years, 8 months ago (2014-04-16 20:19:21 UTC) #4
engedy
On 2014/04/16 20:19:21, engedy wrote: > On 2014/04/16 19:48:50, Peter Kasting wrote: > > Hold ...
6 years, 8 months ago (2014-04-23 17:52:15 UTC) #5
Peter Kasting
On 2014/04/23 17:52:15, engedy wrote: > Peter, do you have any more CLs in the ...
6 years, 8 months ago (2014-04-23 17:55:23 UTC) #6
engedy
@Peter, @Brett: I have finally had time to rework this. Please take a look.
6 years, 6 months ago (2014-05-28 15:22:30 UTC) #7
engedy
On 2014/05/28 15:22:30, engedy wrote: > @Peter, @Brett: I have finally had time to rework ...
6 years, 6 months ago (2014-06-03 09:57:16 UTC) #8
brettw
lgtm https://codereview.chromium.org/235863023/diff/70001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/235863023/diff/70001/chrome/browser/history/history_backend.cc#newcode615 chrome/browser/history/history_backend.cc:615: // used for much, and consequently has been ...
6 years, 6 months ago (2014-06-03 17:08:26 UTC) #9
Peter Kasting
No need for my review, Brett's review is sufficient.
6 years, 6 months ago (2014-06-03 18:03:48 UTC) #10
engedy
I have also found a few more instances where the we talked about things getting ...
6 years, 6 months ago (2014-06-05 10:52:55 UTC) #11
engedy
@Drew, could you PTAL at: * c/b/sync for OWNER's appproval, * and also double check ...
6 years, 6 months ago (2014-06-05 11:03:04 UTC) #12
Andrew T Wilson (Slow)
lgtm. I can't guarantee that changes of this magnitude to the history code won't cause ...
6 years, 6 months ago (2014-06-05 11:44:43 UTC) #13
engedy
As discussed off-line, we will keep a close eye on metrics, and keep in touch ...
6 years, 6 months ago (2014-06-05 12:17:58 UTC) #14
engedy
The CQ bit was checked by engedy@chromium.org
6 years, 6 months ago (2014-06-05 12:18:46 UTC) #15
engedy
The CQ bit was unchecked by engedy@chromium.org
6 years, 6 months ago (2014-06-05 12:19:31 UTC) #16
engedy
On 2014/06/05 12:19:31, engedy wrote: > The CQ bit was unchecked by mailto:engedy@chromium.org @Peter, it ...
6 years, 6 months ago (2014-06-05 12:23:17 UTC) #17
engedy
The CQ bit was checked by engedy@chromium.org
6 years, 6 months ago (2014-06-05 12:23:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/engedy@chromium.org/235863023/110001
6 years, 6 months ago (2014-06-05 12:24:31 UTC) #19
commit-bot: I haz the power
Change committed as 275159
6 years, 6 months ago (2014-06-05 16:44:41 UTC) #20
Peter Kasting
6 years, 6 months ago (2014-06-05 17:38:47 UTC) #21
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698