| Index: components/navigation_interception/intercept_navigation_delegate.cc
|
| diff --git a/components/navigation_interception/intercept_navigation_delegate.cc b/components/navigation_interception/intercept_navigation_delegate.cc
|
| index ba9053d663cfdcf0b42b0f6a521341dfe4e83bc3..10129ff3babd429d87bbdd478a8f9b6ae65ebb72 100644
|
| --- a/components/navigation_interception/intercept_navigation_delegate.cc
|
| +++ b/components/navigation_interception/intercept_navigation_delegate.cc
|
| @@ -7,9 +7,10 @@
|
| #include "base/android/jni_android.h"
|
| #include "base/android/jni_string.h"
|
| #include "base/callback.h"
|
| -#include "components/navigation_interception/intercept_navigation_resource_throttle.h"
|
| +#include "components/navigation_interception/intercept_navigation_throttle.h"
|
| #include "components/navigation_interception/navigation_params_android.h"
|
| #include "content/public/browser/browser_thread.h"
|
| +#include "content/public/browser/navigation_throttle.h"
|
| #include "content/public/browser/render_frame_host.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/resource_request_info.h"
|
| @@ -83,10 +84,11 @@ InterceptNavigationDelegate* InterceptNavigationDelegate::Get(
|
| }
|
|
|
| // static
|
| -content::ResourceThrottle* InterceptNavigationDelegate::CreateThrottleFor(
|
| - net::URLRequest* request) {
|
| - return new InterceptNavigationResourceThrottle(
|
| - request, base::Bind(&CheckIfShouldIgnoreNavigationOnUIThread));
|
| +content::NavigationThrottle* InterceptNavigationDelegate::CreateThrottleFor(
|
| + content::NavigationHandle* handle) {
|
| + return new InterceptNavigationThrottle(
|
| + handle->GetWebContents(), handle,
|
| + base::Bind(&CheckIfShouldIgnoreNavigationOnUIThread));
|
| }
|
|
|
| // static
|
|
|