Descriptionpredictors: Fix duplicate content type detection.
Content type mapping is done in two places: in
ResourcePrefetchPredictor, and in ResourcePrefetchPredictorObserver. The
first one is undesirable, since it overrides the resource type set at
URL request time.
Remove the duplication, and move the summary creation to
ResourcePrefetchPredictor. This will make it easier to add tests as
well.
BUG=631966
Committed: https://crrev.com/135b7336c5c7f1e38a88c0b89b762d335208cd6f
Cr-Commit-Position: refs/heads/master@{#412496}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Address comments./ #Patch Set 3 : Address comment. #
Messages
Total messages: 23 (12 generated)
|