Speed up IsAdScriptInStack by passing ExecutionContext when known
What: Some callers to IsAdScriptInStack know the ExecutionContext that triggered the event. Those callers should pass the context in to IsAdScriptInStack as there is a small cost to looking it up. Why: Some callers (such as core_probes) call frequently and looking up the ExecutionContext when it's already known only slows things down. Bug: 851531 Change-Id: Id8eadfc9855cdda0d18df34a4829dd47e31ac64f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090232 Commit-Queue: Josh Karlin <jkarlin@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#747899}
Showing
Please register or sign in to comment