DescriptionFix NULL deref in HistoryBackend::ExpireHistoryBetween.
We're seeing crashes in history::VisitDatabase::GetStartDate coming from
HistoryBackend::ExpireHistoryBetween where db_ is NULL. This change
mitigates this by two avenues: first_recorded_time_ is cleared when the
DB is closed (so that no other code that checks it blows up), and
GetStartDate is no longer called by ExpireHistoryBetween when db_ is
NULL.
Evidence suggests that this bug is responsible for browser crashes at
shutdown that result in a corrupt profile dialog on the next launch.
BUG=275916, 273832, 165282, 107613, 36588
R=brettw@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221802
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|