summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc')
-rw-r--r--chromium/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc b/chromium/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc
index df4b069915d..88ed4b4a12c 100644
--- a/chromium/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc
+++ b/chromium/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc
@@ -687,9 +687,10 @@ void SafeBrowsingNavigationObserverManager::RecordNewWebContents(
nav_event->initiator_outermost_main_frame_id =
source_render_frame_host->GetOutermostMainFrame()->GetGlobalId();
}
- nav_event->outermost_main_frame_id = target_web_contents->GetMainFrame()
- ->GetOutermostMainFrame()
- ->GetGlobalId();
+ nav_event->outermost_main_frame_id =
+ target_web_contents->GetPrimaryMainFrame()
+ ->GetOutermostMainFrame()
+ ->GetGlobalId();
}
nav_event->source_tab_id =