Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3922)

Unified Diff: components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc

Issue 2856653004: Require a process ID when looking up RFHs by FrameTreeNode ID. (Closed)
Patch Set: Simplify ExtNavThrottle Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698