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

Unified Diff: content/browser/devtools/render_frame_devtools_agent_host.cc

Issue 2392283005: Reland "Merge of CrossSiteResourceHandler and NavigationResourceThrottle." (Closed)
Patch Set: Added debugging code from issue 2393903002 Created 4 years, 2 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/frame_host/cross_site_transferring_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/render_frame_devtools_agent_host.cc
diff --git a/content/browser/devtools/render_frame_devtools_agent_host.cc b/content/browser/devtools/render_frame_devtools_agent_host.cc
index a3985bf3c3ada34e6e74eb24c7d4701cfd82c00b..f6c53011b8cb51f2b54b1e36c01029f7a033e3b6 100644
--- a/content/browser/devtools/render_frame_devtools_agent_host.cc
+++ b/content/browser/devtools/render_frame_devtools_agent_host.cc
@@ -569,8 +569,11 @@ RenderFrameDevToolsAgentHost::~RenderFrameDevToolsAgentHost() {
void RenderFrameDevToolsAgentHost::ReadyToCommitNavigation(
NavigationHandle* navigation_handle) {
- // ReadyToCommitNavigation should only be called in PlzNavigate.
- DCHECK(IsBrowserSideNavigationEnabled());
+ // TODO(clamy): Switch RenderFrameDevToolsAgentHost to always buffer messages
+ // until ReadyToCommitNavigation is called, now that it is also called in
+ // non-PlzNavigate mode.
+ if (!IsBrowserSideNavigationEnabled())
+ return;
// If the navigation is not tracked, return;
if (navigating_handles_.count(navigation_handle) == 0)
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/frame_host/cross_site_transferring_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698