Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1001)

Unified Diff: components/navigation_interception/intercept_navigation_throttle_unittest.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/nacl/renderer/trusted_plugin_channel.cc ('k') | components/net_log/chrome_net_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « components/nacl/renderer/trusted_plugin_channel.cc ('k') | components/net_log/chrome_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698