DescriptionSafeguard against crash-looping if subresource filter rule indexing fails.
A sentinel file is placed in the ruleset version directory just before indexing
commences, and removed afterwards. Therefore, if a sentinel file is found on
next start-up, it is an indication that the previous indexing operation may
have crashed, and indexing will not be attempted again.
This CL also slightly refactors unit tests so that we no longer have specific
tests verifying histograms values, but instead we have tests exercising error
scenarios, and verifying histogram values is performed as part of that.
TBR=rkaplow@chromium.org
BUG=609747
Committed: https://crrev.com/6ab601217b9c7ff2123ae262d2eada5e1b1557ec
Cr-Commit-Position: refs/heads/master@{#414235}
Patch Set 1 #Patch Set 2 : Histograms.xml + comments + more tests. #Patch Set 3 : Pipe temporary directory through env vars. #Patch Set 4 : Actually expose temp dir. #Patch Set 5 : Fix iOS and Win builders. #
Total comments: 6
Patch Set 6 : Addressed comments by pkalinnikov@. #
Messages
Total messages: 36 (24 generated)
|