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

Unified Diff: content/test/test_navigation_url_loader.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/test/test_content_client.cc ('k') | content/test/test_navigation_url_loader_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_navigation_url_loader.cc
diff --git a/content/test/test_navigation_url_loader.cc b/content/test/test_navigation_url_loader.cc
index d054dc35faabe4639b6c5a5e405259e6c6549cfc..ecb3b1014964f0d2cc99aa25a62617487afa3a1a 100644
--- a/content/test/test_navigation_url_loader.cc
+++ b/content/test/test_navigation_url_loader.cc
@@ -4,6 +4,8 @@
#include "content/test/test_navigation_url_loader.h"
+#include <utility>
+
#include "content/browser/loader/navigation_url_loader_delegate.h"
#include "content/public/browser/stream_handle.h"
#include "content/public/common/resource_response.h"
@@ -14,10 +16,9 @@ namespace content {
TestNavigationURLLoader::TestNavigationURLLoader(
scoped_ptr<NavigationRequestInfo> request_info,
NavigationURLLoaderDelegate* delegate)
- : request_info_(request_info.Pass()),
+ : request_info_(std::move(request_info)),
delegate_(delegate),
- redirect_count_(0) {
-}
+ redirect_count_(0) {}
void TestNavigationURLLoader::FollowRedirect() {
redirect_count_++;
@@ -46,7 +47,7 @@ void TestNavigationURLLoader::CallOnRequestRedirected(
void TestNavigationURLLoader::CallOnResponseStarted(
const scoped_refptr<ResourceResponse>& response,
scoped_ptr<StreamHandle> body) {
- delegate_->OnResponseStarted(response, body.Pass());
+ delegate_->OnResponseStarted(response, std::move(body));
}
TestNavigationURLLoader::~TestNavigationURLLoader() {}
« no previous file with comments | « content/test/test_content_client.cc ('k') | content/test/test_navigation_url_loader_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698