diff options
Diffstat (limited to 'net/proxy/mock_proxy_resolver.cc')
-rw-r--r-- | net/proxy/mock_proxy_resolver.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/proxy/mock_proxy_resolver.cc b/net/proxy/mock_proxy_resolver.cc index 3bf5314..21cac00 100644 --- a/net/proxy/mock_proxy_resolver.cc +++ b/net/proxy/mock_proxy_resolver.cc @@ -4,6 +4,8 @@ #include "net/proxy/mock_proxy_resolver.h" +#include <utility> + #include "base/logging.h" #include "base/message_loop/message_loop.h" @@ -86,7 +88,7 @@ MockAsyncProxyResolverFactory::Request::~Request() { void MockAsyncProxyResolverFactory::Request::CompleteNow( int rv, scoped_ptr<ProxyResolver> resolver) { - *resolver_ = resolver.Pass(); + *resolver_ = std::move(resolver); // RemovePendingRequest may remove the last external reference to |this|. scoped_refptr<MockAsyncProxyResolverFactory::Request> keep_alive(this); |