Allow SubresourceFilterAgent::GetInheritedActivationState to be static
Currently, it is a bit confusing that the function is not static, given its render_frame argument. Additionally, it currently violates the rule against virtual methods in constructors. We add an extra layer of indirection: GetInheritedActivationStateForNewDocument(). This can then be overridden by the test harness without affecting the constructor. Bug: 1134747 Change-Id: I0db55c7fdaaf52992dc23ee9a568f82a22d0161b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495911Reviewed-by:Charlie Harrison <csharrison@chromium.org> Commit-Queue: Alex Turner <alexmt@chromium.org> Cr-Commit-Position: refs/heads/master@{#823426}
Showing
Please register or sign in to comment