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

Unified Diff: net/proxy/proxy_resolver_perftest.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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 | « net/proxy/proxy_resolver_factory_mojo_unittest.cc ('k') | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_resolver_perftest.cc
diff --git a/net/proxy/proxy_resolver_perftest.cc b/net/proxy/proxy_resolver_perftest.cc
index 6b8501c6807ace64ba3b4dcb6933b232eadf04e9..7aae5b21b387c6cdfc582c66c007b38ca0726f39 100644
--- a/net/proxy/proxy_resolver_perftest.cc
+++ b/net/proxy/proxy_resolver_perftest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "base/base_paths.h"
#include "base/compiler_specific.h"
#include "base/files/file_util.h"
@@ -227,7 +229,7 @@ class ProxyResolverV8Wrapper : public ProxyResolver {
public:
ProxyResolverV8Wrapper(scoped_ptr<ProxyResolverV8> resolver,
scoped_ptr<MockJSBindings> bindings)
- : resolver_(resolver.Pass()), bindings_(bindings.Pass()) {}
+ : resolver_(std::move(resolver)), bindings_(std::move(bindings)) {}
int GetProxyForURL(const GURL& url,
ProxyInfo* results,
@@ -264,8 +266,8 @@ class ProxyResolverV8Factory : public ProxyResolverFactory {
int result =
ProxyResolverV8::Create(pac_script, js_bindings_.get(), &v8_resolver);
if (result == OK) {
- resolver->reset(
- new ProxyResolverV8Wrapper(v8_resolver.Pass(), js_bindings_.Pass()));
+ resolver->reset(new ProxyResolverV8Wrapper(std::move(v8_resolver),
+ std::move(js_bindings_)));
}
return result;
}
« no previous file with comments | « net/proxy/proxy_resolver_factory_mojo_unittest.cc ('k') | net/proxy/proxy_resolver_v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698