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

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

Issue 2397893002: Revert the merge of CrossSiteResourceHandler and NavigationResourceThrottle. (Closed)
Patch Set: Add back initialization of started_from_context_menu_. 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 f6c53011b8cb51f2b54b1e36c01029f7a033e3b6..a3985bf3c3ada34e6e74eb24c7d4701cfd82c00b 100644
--- a/content/browser/devtools/render_frame_devtools_agent_host.cc
+++ b/content/browser/devtools/render_frame_devtools_agent_host.cc
@@ -569,11 +569,8 @@ RenderFrameDevToolsAgentHost::~RenderFrameDevToolsAgentHost() {
void RenderFrameDevToolsAgentHost::ReadyToCommitNavigation(
NavigationHandle* navigation_handle) {
- // 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;
+ // ReadyToCommitNavigation should only be called in PlzNavigate.
+ DCHECK(IsBrowserSideNavigationEnabled());
// 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