Index: content/browser/frame_host/navigation_handle_impl.cc |
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc |
index d7dcbefabbf2f06121040f756c61a2c45587d524..33e97b7e940af163334503fc5dc980f2dc1e676c 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -7,6 +7,7 @@ |
#include <utility> |
#include "base/logging.h" |
+#include "content/browser/devtools/render_frame_devtools_agent_host.h" |
#include "content/browser/frame_host/frame_tree_node.h" |
#include "content/browser/frame_host/navigator.h" |
#include "content/browser/frame_host/navigator_delegate.h" |
@@ -334,6 +335,10 @@ void NavigationHandleImpl::WillStartRequest( |
throttles_to_register.end()); |
throttles_to_register.weak_clear(); |
} |
+ std::unique_ptr<NavigationThrottle> devtools_throttle = |
+ RenderFrameDevToolsAgentHost::GetThrottleForNavigation(this); |
+ if (devtools_throttle) |
+ throttles_.push_back(devtools_throttle.release()); |
// Notify each throttle of the request. |
NavigationThrottle::ThrottleCheckResult result = CheckWillStartRequest(); |