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

Unified Diff: content/public/test/test_download_request_handler.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/public/test/test_browser_context.cc ('k') | content/public/test/test_file_error_injector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.cc
diff --git a/content/public/test/test_download_request_handler.cc b/content/public/test/test_download_request_handler.cc
index 107cf1f84dd2169a9c61217b559da36eefd2eeaf..89e2cdc1180c0c618b9eaf1a500f9f85f1818c4d 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -5,6 +5,7 @@
#include "content/public/test/test_download_request_handler.h"
#include <inttypes.h>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -213,7 +214,7 @@ TestDownloadRequestHandler::PartialResponseJob::PartialResponseJob(
net::URLRequest* request,
net::NetworkDelegate* network_delegate)
: net::URLRequestJob(request, network_delegate),
- parameters_(parameters.Pass()),
+ parameters_(std::move(parameters)),
interceptor_(interceptor),
weak_factory_(this) {
DCHECK(parameters_.get());
@@ -488,7 +489,7 @@ TestDownloadRequestHandler::Interceptor::Register(
base::WeakPtr<Interceptor> weak_reference =
interceptor->weak_ptr_factory_.GetWeakPtr();
net::URLRequestFilter* filter = net::URLRequestFilter::GetInstance();
- filter->AddUrlInterceptor(url, interceptor.Pass());
+ filter->AddUrlInterceptor(url, std::move(interceptor));
return weak_reference;
}
« no previous file with comments | « content/public/test/test_browser_context.cc ('k') | content/public/test/test_file_error_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698