diff options
Diffstat (limited to 'net/base/file_stream.cc')
-rw-r--r-- | net/base/file_stream.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/base/file_stream.cc b/net/base/file_stream.cc index 81e14ae..6826e80 100644 --- a/net/base/file_stream.cc +++ b/net/base/file_stream.cc @@ -4,6 +4,8 @@ #include "net/base/file_stream.h" +#include <utility> + #include "base/profiler/scoped_tracker.h" #include "net/base/file_stream_context.h" #include "net/base/net_errors.h" @@ -16,8 +18,7 @@ FileStream::FileStream(const scoped_refptr<base::TaskRunner>& task_runner) FileStream::FileStream(base::File file, const scoped_refptr<base::TaskRunner>& task_runner) - : context_(new Context(file.Pass(), task_runner)) { -} + : context_(new Context(std::move(file), task_runner)) {} FileStream::~FileStream() { context_.release()->Orphan(); |