DescriptionLimit the time spent on a single iteration of PhishingDOMFeatureExtractor.
With this change, the feature extractor will keep track of how long it has been
working, and if it exceeds a predefined time limit, it will pause and post a
task to continue extraction. This will allow other MessageLoop tasks to run on
the render thread. There is also a total time limit, after which the extractor
will give up altogether -- this is a sanity check in case of a bug or an
especially large page. Also includes some UMA histograms so that we can see
how well this performs in practice.
TEST=PhishingDOMFeatureExtractorTest.Continuation
BUG=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57243
Patch Set 1 #
Total comments: 4
Patch Set 2 : add some comments suggested by lzheng #Patch Set 3 : tiny comment fix #
Messages
Total messages: 5 (0 generated)
|