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

Issue 16951015: Remove TextDatabase from the history service. (Closed)

Created:
7 years, 6 months ago by rmcilroy
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@replace_fts
Visibility:
Public.

Description

Remove TextDatabase from the history service. The full text indexing feature is no longer used by anything. - Remove the TextDatabase, TextDatabaseManager and related files. - Remove is_indexed field from VisitRow objects. - Modify ExpireHistoryBackend and HistoryBackend to no longer call TextDatabase - Have HistoryBackend delete the "History Index *" files from the users profile - Remove ChromeViewHostMsg_PageContents IPC message since the browser process no longer requires to have the page contents of recently loaded pages. BUG=247418 TESTS=unit tests, manual testing and run through trybots. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212459 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213442

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address Scott's comments. #

Patch Set 3 : Remove QueryOptions.body_only #

Total comments: 2

Patch Set 4 : Add test for DeleteFTSIndexDatabases and rebase #

Patch Set 5 : Fix unit test for Windows. #

Total comments: 4

Patch Set 6 : Remove is_indexed field from visit database #

Patch Set 7 : #

Patch Set 8 : Fix a couple of unittests after removing is_indexed field #

Patch Set 9 : Sync and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -2674 lines) Patch
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/expire_history_backend.h View 1 2 3 6 chunks +2 lines, -15 lines 0 comments Download
M chrome/browser/history/expire_history_backend.cc View 1 2 3 4 5 6 7 8 11 chunks +1 line, -81 lines 0 comments Download
M chrome/browser/history/expire_history_backend_unittest.cc View 1 2 3 15 chunks +3 lines, -133 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 8 6 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 21 chunks +28 lines, -193 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 6 8 chunks +41 lines, -32 lines 0 comments Download
M chrome/browser/history/history_database.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/history/history_tab_helper.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/history/history_tab_helper.cc View 1 2 3 2 chunks +0 lines, -30 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/history/history_types.cc View 1 2 3 3 chunks +2 lines, -5 lines 0 comments Download
D chrome/browser/history/text_database.h View 1 2 3 1 chunk +0 lines, -165 lines 0 comments Download
D chrome/browser/history/text_database.cc View 1 2 3 1 chunk +0 lines, -353 lines 0 comments Download
D chrome/browser/history/text_database_manager.h View 1 chunk +0 lines, -320 lines 0 comments Download
D chrome/browser/history/text_database_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -586 lines 0 comments Download
D chrome/browser/history/text_database_manager_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -598 lines 0 comments Download
M chrome/browser/history/visit_database.h View 1 2 3 4 5 6 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/history/visit_database.cc View 1 2 3 4 5 6 7 5 chunks +9 lines, -32 lines 0 comments Download
M chrome/browser/history/visit_database_unittest.cc View 1 2 3 3 chunks +1 line, -30 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/test/data/History/url_history_provider_test.db.txt View 1 2 3 4 5 6 7 1 chunk +20 lines, -20 lines 0 comments Download
M chrome/test/perf/generate_profile.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/perf/generate_profile.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
rmcilroy
This CL follows on from CL:16776004, by removing all code which was required for the ...
7 years, 6 months ago (2013-06-14 15:31:41 UTC) #1
Scott Hess - ex-Googler
LGTM. As I mentioned to Brett when he originally brought this up, is there any ...
7 years, 6 months ago (2013-06-14 19:39:56 UTC) #2
rmcilroy
> As I mentioned to Brett when he originally brought this up, is there any ...
7 years, 6 months ago (2013-06-17 14:11:49 UTC) #3
rmcilroy
All preceding CLs have landed. Adding OWNERS for LGTMs on specific subsystems: brettw: chrome/browser/history sky: ...
7 years, 6 months ago (2013-06-24 15:51:13 UTC) #4
palmer
I love the smell of deleted code in the morning. LGTM.
7 years, 6 months ago (2013-06-24 18:53:53 UTC) #5
rmcilroy
Ping? Brett, Sky?
7 years, 5 months ago (2013-06-28 18:44:33 UTC) #6
sky
Brett should review this one.
7 years, 5 months ago (2013-06-28 19:38:31 UTC) #7
rmcilroy
On 2013/06/28 19:38:31, sky wrote: > Brett should review this one. Ping - Brett?
7 years, 5 months ago (2013-07-04 14:22:10 UTC) #8
rmcilroy
brettw: Please could you give this CL a review? It's been hanging around for one ...
7 years, 5 months ago (2013-07-12 10:57:56 UTC) #9
palmer
https://codereview.chromium.org/16951015/diff/10001/chrome/browser/history/history_backend_unittest.cc File chrome/browser/history/history_backend_unittest.cc (right): https://codereview.chromium.org/16951015/diff/10001/chrome/browser/history/history_backend_unittest.cc#newcode604 chrome/browser/history/history_backend_unittest.cc:604: EXPECT_TRUE(bookmark_model_.IsBookmarked(row1.url())); It'd be good to add some unit tests ...
7 years, 5 months ago (2013-07-12 18:21:02 UTC) #10
rmcilroy
Rebased and added DeleteFTSIndexDatabases unit test. PTAL. https://codereview.chromium.org/16951015/diff/10001/chrome/browser/history/history_backend_unittest.cc File chrome/browser/history/history_backend_unittest.cc (right): https://codereview.chromium.org/16951015/diff/10001/chrome/browser/history/history_backend_unittest.cc#newcode604 chrome/browser/history/history_backend_unittest.cc:604: EXPECT_TRUE(bookmark_model_.IsBookmarked(row1.url())); On ...
7 years, 5 months ago (2013-07-15 12:47:18 UTC) #11
palmer
Thanks! Still LGTM.
7 years, 5 months ago (2013-07-15 18:51:26 UTC) #12
brettw
lgtm https://codereview.chromium.org/16951015/diff/37001/chrome/browser/history/visit_database.cc File chrome/browser/history/visit_database.cc (right): https://codereview.chromium.org/16951015/diff/37001/chrome/browser/history/visit_database.cc#newcode37 chrome/browser/history/visit_database.cc:37: "is_indexed BOOLEAN," // unused field - kept to ...
7 years, 5 months ago (2013-07-17 17:39:56 UTC) #13
rmcilroy
Thanks Brett. Scott Violet: I still need an LGTM from someone in chrome/OWNERS for: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc ...
7 years, 5 months ago (2013-07-18 11:42:52 UTC) #14
sky
Wow, weird to see someone use my full real name in a review;) Said files ...
7 years, 5 months ago (2013-07-18 16:17:48 UTC) #15
rmcilroy
On 2013/07/18 16:17:48, sky wrote: > Wow, weird to see someone use my full real ...
7 years, 5 months ago (2013-07-18 16:50:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/16951015/66001
7 years, 5 months ago (2013-07-18 17:10:00 UTC) #17
commit-bot: I haz the power
Change committed as 212459
7 years, 5 months ago (2013-07-18 22:46:12 UTC) #18
rmcilroy
Attempting to re-land this after it was reverted due to a unittest failure which didn't ...
7 years, 5 months ago (2013-07-24 13:48:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/16951015/81001
7 years, 5 months ago (2013-07-24 13:48:37 UTC) #20
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-24 13:55:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/16951015/81001
7 years, 5 months ago (2013-07-24 14:15:19 UTC) #22
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 16:13:20 UTC) #23
Message was sent while issue was closed.
Change committed as 213442

Powered by Google App Engine
This is Rietveld 408576698