| Index: components/navigation_interception/intercept_navigation_throttle_unittest.cc
|
| diff --git a/components/navigation_interception/intercept_navigation_throttle_unittest.cc b/components/navigation_interception/intercept_navigation_throttle_unittest.cc
|
| index 8c15876c8ce1dbee4c0aa6891ca2f17f390cc090..f3096ded0cb01fde4a28aef9a725f3b693574e11 100644
|
| --- a/components/navigation_interception/intercept_navigation_throttle_unittest.cc
|
| +++ b/components/navigation_interception/intercept_navigation_throttle_unittest.cc
|
| @@ -62,14 +62,11 @@ class InterceptNavigationThrottleTest
|
| content::NavigationHandle::CreateNavigationHandleForTesting(
|
| url, main_rfh());
|
| test_handle->RegisterThrottleForTesting(
|
| - scoped_ptr<NavigationThrottle>(
|
| - new InterceptNavigationThrottle(
|
| - test_handle.get(),
|
| - base::Bind(
|
| - &MockInterceptCallbackReceiver::ShouldIgnoreNavigation,
|
| - base::Unretained(mock_callback_receiver_.get())),
|
| - true))
|
| - .Pass());
|
| + scoped_ptr<NavigationThrottle>(new InterceptNavigationThrottle(
|
| + test_handle.get(),
|
| + base::Bind(&MockInterceptCallbackReceiver::ShouldIgnoreNavigation,
|
| + base::Unretained(mock_callback_receiver_.get())),
|
| + true)));
|
| return test_handle->CallWillStartRequestForTesting(
|
| is_post, content::Referrer(), false, ui::PAGE_TRANSITION_LINK, false);
|
| }
|
| @@ -79,14 +76,11 @@ class InterceptNavigationThrottleTest
|
| content::NavigationHandle::CreateNavigationHandleForTesting(
|
| GURL(kTestUrl), main_rfh());
|
| test_handle->RegisterThrottleForTesting(
|
| - scoped_ptr<NavigationThrottle>(
|
| - new InterceptNavigationThrottle(
|
| - test_handle.get(),
|
| - base::Bind(
|
| - &MockInterceptCallbackReceiver::ShouldIgnoreNavigation,
|
| - base::Unretained(mock_callback_receiver_.get())),
|
| - true))
|
| - .Pass());
|
| + scoped_ptr<NavigationThrottle>(new InterceptNavigationThrottle(
|
| + test_handle.get(),
|
| + base::Bind(&MockInterceptCallbackReceiver::ShouldIgnoreNavigation,
|
| + base::Unretained(mock_callback_receiver_.get())),
|
| + true)));
|
| test_handle->CallWillStartRequestForTesting(
|
| true, content::Referrer(), false, ui::PAGE_TRANSITION_LINK, false);
|
| return test_handle->CallWillRedirectRequestForTesting(GURL(kTestUrl), false,
|
|
|