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 30536bd306c76c4da490f9ea142210612c907d0c..9b185c7b2f2d09961e0128c2f519b7422a75ada8 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -16,6 +16,7 @@ |
#include "content/browser/frame_host/ancestor_throttle.h" |
#include "content/browser/frame_host/debug_urls.h" |
#include "content/browser/frame_host/frame_tree_node.h" |
+#include "content/browser/frame_host/mixed_content_navigation_throttle.h" |
#include "content/browser/frame_host/navigator.h" |
#include "content/browser/frame_host/navigator_delegate.h" |
#include "content/browser/loader/resource_dispatcher_host_impl.h" |
@@ -32,7 +33,6 @@ |
#include "content/public/common/url_constants.h" |
#include "net/base/net_errors.h" |
#include "net/url_request/redirect_info.h" |
-#include "third_party/WebKit/public/platform/WebMixedContentContextType.h" |
#include "url/gurl.h" |
#include "url/url_constants.h" |
@@ -792,6 +792,12 @@ void NavigationHandleImpl::RegisterNavigationThrottles() { |
// RegisterThrottleForTesting. |
std::vector<std::unique_ptr<NavigationThrottle>> throttles_to_register = |
GetDelegate()->CreateThrottlesForNavigation(this); |
+ |
+ std::unique_ptr<NavigationThrottle> mixed_content_throttle = |
+ MixedContentNavigationThrottle::CreateThrottleForNavigation(this); |
+ if (mixed_content_throttle) |
+ throttles_to_register.push_back(std::move(mixed_content_throttle)); |
+ |
std::unique_ptr<NavigationThrottle> devtools_throttle = |
RenderFrameDevToolsAgentHost::CreateThrottleForNavigation(this); |
if (devtools_throttle) |