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

Issue 15645012: Omnibox: Rebuild HQP Cache if it's old (Closed)

Created:
7 years, 6 months ago by Mark P
Modified:
7 years, 6 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, browser-components-watch_chromium.org
Visibility:
Public.

Description

Omnibox: Rebuild HQP Cache if it's old Make sure the HQP data file is rebuilt from the on-disk history database at least once a week. If this doesn't happen, the HQP will grow without bound. Every time a URL is visited, it has the opportunity to be added to the index. The HQP never expires anything from its index; it currently only gets rid of only entries by rebuilding the cache from history. Hence, we need to force rebuilds regularly. A side effect of this change, which bumps the HQP's cache version number, will cause all clients to rebuild their HQP database on the first restart after this update. BUG=230605, 178705, 237703, 168933 TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204985

Patch Set 1 #

Patch Set 2 : polish #

Total comments: 4

Patch Set 3 : Peter's comments. #

Patch Set 4 : correct 1 to -1. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -4 lines) Patch
M chrome/browser/history/in_memory_url_index_cache.proto View 1 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 2 chunks +72 lines, -1 line 0 comments Download
M chrome/browser/history/url_index_private_data.h View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/history/url_index_private_data.cc View 1 2 3 5 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Mark P
Hopefully this'll fix all the HQP slowness issues. --mark
7 years, 6 months ago (2013-06-06 23:54:15 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/15645012/diff/2001/chrome/browser/history/url_index_private_data.cc File chrome/browser/history/url_index_private_data.cc (right): https://codereview.chromium.org/15645012/diff/2001/chrome/browser/history/url_index_private_data.cc#newcode1053 chrome/browser/history/url_index_private_data.cc:1053: // Cache is more than a week old ...
7 years, 6 months ago (2013-06-07 00:39:55 UTC) #2
Mark P
https://codereview.chromium.org/15645012/diff/2001/chrome/browser/history/url_index_private_data.cc File chrome/browser/history/url_index_private_data.cc (right): https://codereview.chromium.org/15645012/diff/2001/chrome/browser/history/url_index_private_data.cc#newcode1053 chrome/browser/history/url_index_private_data.cc:1053: // Cache is more than a week old or, ...
7 years, 6 months ago (2013-06-07 00:50:27 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/15645012/8001
7 years, 6 months ago (2013-06-07 00:50:50 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=7487
7 years, 6 months ago (2013-06-07 02:30:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/15645012/8001
7 years, 6 months ago (2013-06-07 13:32:02 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=48014
7 years, 6 months ago (2013-06-07 14:05:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpearson@chromium.org/15645012/39001
7 years, 6 months ago (2013-06-07 19:22:23 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-08 00:04:03 UTC) #9
Message was sent while issue was closed.
Change committed as 204985

Powered by Google App Engine
This is Rietveld 408576698