Index: components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc |
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc b/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc |
index 32b679cf7c333a3fdf17b7100dbe00feb3ea5ba8..1d4161870d7d4e0d65ab092ee9f1fa37dc2349db 100644 |
--- a/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc |
+++ b/components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc |
@@ -248,8 +248,7 @@ AsyncDocumentSubresourceFilter* |
ContentSubresourceFilterThrottleManager::GetParentFrameFilter( |
content::NavigationHandle* child_frame_navigation) { |
DCHECK(!child_frame_navigation->IsInMainFrame()); |
- content::RenderFrameHost* parent = web_contents()->FindFrameByFrameTreeNodeId( |
- child_frame_navigation->GetParentFrameTreeNodeId()); |
+ content::RenderFrameHost* parent = child_frame_navigation->GetParentFrame(); |
DCHECK(parent); |
auto it = activated_frame_hosts_.find(parent); |
return it == activated_frame_hosts_.end() ? nullptr : it->second.get(); |