| Index: net/base/file_stream.cc
|
| diff --git a/net/base/file_stream.cc b/net/base/file_stream.cc
|
| index 81e14ae54822e78765a6f79cc0f35c4781a2f7fa..6826e808971639a8543d80346d41255be5b9d0ab 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();
|
|
|