summaryrefslogtreecommitdiffstats
path: root/chrome/browser/visitedlink_master.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 22:44:12 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 22:44:12 +0000
commitaed132ed197e7b84184639941051713cb079c0e4 (patch)
tree97811324196e14727316df034a1cafa73ef925e4 /chrome/browser/visitedlink_master.h
parent5eee02236e12ff013c35b0ec338b906fdc70c52e (diff)
downloadchromium_src-aed132ed197e7b84184639941051713cb079c0e4.zip
chromium_src-aed132ed197e7b84184639941051713cb079c0e4.tar.gz
chromium_src-aed132ed197e7b84184639941051713cb079c0e4.tar.bz2
When importing a lot of history, the NOTREACHED in VisitedLinkMaster::AddFingerprint is reached. This causes an exit on debug builds, for production builds part of the history would silently not get imported. The root cause is that the initial size of the hash table only considers one of the two sources of input.
BUG=none TEST=VisitedLinkTest::BigImport Review URL: http://codereview.chromium.org/164419 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/visitedlink_master.h')
-rw-r--r--chrome/browser/visitedlink_master.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/visitedlink_master.h b/chrome/browser/visitedlink_master.h
index a07a1f7..3355436 100644
--- a/chrome/browser/visitedlink_master.h
+++ b/chrome/browser/visitedlink_master.h
@@ -138,6 +138,7 @@ class VisitedLinkMaster : public VisitedLinkCommon {
private:
FRIEND_TEST(VisitedLinkTest, Delete);
FRIEND_TEST(VisitedLinkTest, BigDelete);
+ FRIEND_TEST(VisitedLinkTest, BigImport);
// Object to rebuild the table on the history thread (see the .cc file).
class TableBuilder;