Remove redundant ad identification code in AdsPageLoadMetricsObserver.
Ad detection in AdsPageLoadMetricsObserver was previously done through keeping track of ads with an override to OnSubframeNavigationEvaluated and storing the ad frames in the set unfinished_subresource_ad_frames_, and removal from the set when later checking if it is the frame is an ad. ContentSubresourceFilterThrottleManager now has an accessible public IsFrameTaggedAsAd() method that makes ad detection within AdsPageLoadMetricsObserver redundant. BUG=958757 Change-Id: I0286984f81569ab35c01f92ff87303a4753b46b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1716253 Commit-Queue: Justin Miron <justinmiron@google.com> Reviewed-by:Josh Karlin <jkarlin@chromium.org> Cr-Commit-Position: refs/heads/master@{#683563}
Showing
Please register or sign in to comment