diff options
Diffstat (limited to 'components/navigation_interception/intercept_navigation_delegate.cc')
-rw-r--r-- | components/navigation_interception/intercept_navigation_delegate.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/components/navigation_interception/intercept_navigation_delegate.cc b/components/navigation_interception/intercept_navigation_delegate.cc index 11017f3b..ba9053d 100644 --- a/components/navigation_interception/intercept_navigation_delegate.cc +++ b/components/navigation_interception/intercept_navigation_delegate.cc @@ -7,10 +7,9 @@ #include "base/android/jni_android.h" #include "base/android/jni_string.h" #include "base/callback.h" -#include "components/navigation_interception/intercept_navigation_throttle.h" +#include "components/navigation_interception/intercept_navigation_resource_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" @@ -84,12 +83,10 @@ InterceptNavigationDelegate* InterceptNavigationDelegate::Get( } // static -scoped_ptr<content::NavigationThrottle> -InterceptNavigationDelegate::CreateThrottleFor( - content::NavigationHandle* handle) { - return scoped_ptr<content::NavigationThrottle>( - new InterceptNavigationThrottle( - handle, base::Bind(&CheckIfShouldIgnoreNavigationOnUIThread))); +content::ResourceThrottle* InterceptNavigationDelegate::CreateThrottleFor( + net::URLRequest* request) { + return new InterceptNavigationResourceThrottle( + request, base::Bind(&CheckIfShouldIgnoreNavigationOnUIThread)); } // static |