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

Unified Diff: chrome/browser/policy/cloud/test_request_interceptor.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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
Index: chrome/browser/policy/cloud/test_request_interceptor.cc
diff --git a/chrome/browser/policy/cloud/test_request_interceptor.cc b/chrome/browser/policy/cloud/test_request_interceptor.cc
index d1da15af0781c5b8a9c773fc45c9710bac19aca5..3da4012c712f5c2ac5a0adfe61653cf9849ab777 100644
--- a/chrome/browser/policy/cloud/test_request_interceptor.cc
+++ b/chrome/browser/policy/cloud/test_request_interceptor.cc
@@ -6,6 +6,7 @@
#include <limits>
#include <queue>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -154,7 +155,7 @@ void RegisterHttpInterceptor(
const std::string& hostname,
scoped_ptr<net::URLRequestInterceptor> interceptor) {
net::URLRequestFilter::GetInstance()->AddHostnameInterceptor(
- "http", hostname, interceptor.Pass());
+ "http", hostname, std::move(interceptor));
}
void UnregisterHttpInterceptor(const std::string& hostname) {

Powered by Google App Engine
This is Rietveld 408576698