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

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

Issue 2856653004: Require a process ID when looking up RFHs by FrameTreeNode ID. (Closed)
Patch Set: Created 3 years, 8 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/activation_state_computing_navigation_throttle.cc
diff --git a/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc b/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
index dfa6be5a8bd744d712f56147909d523b7d780494..0e755245c872288e89c058fef4010c9bb05cf36e 100644
--- a/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
+++ b/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
@@ -82,9 +82,7 @@ ActivationStateComputingNavigationThrottle::WillProcessResponse() {
params.document_url = navigation_handle()->GetURL();
params.parent_activation_state = parent_activation_state_.value();
if (!navigation_handle()->IsInMainFrame()) {
- content::RenderFrameHost* parent =
- navigation_handle()->GetWebContents()->FindFrameByFrameTreeNodeId(
- navigation_handle()->GetParentFrameTreeNodeId());
+ content::RenderFrameHost* parent = navigation_handle()->GetParentFrame();
DCHECK(parent);
params.parent_document_origin = parent->GetLastCommittedOrigin();
}

Powered by Google App Engine
This is Rietveld 408576698