Index: mojo/fetcher/local_fetcher.cc |
diff --git a/mojo/fetcher/local_fetcher.cc b/mojo/fetcher/local_fetcher.cc |
index 1bce4a545689213c30b13eee6c8302354ea411e6..e723eca6591700439c7157d4ed4e736e3abc6be5 100644 |
--- a/mojo/fetcher/local_fetcher.cc |
+++ b/mojo/fetcher/local_fetcher.cc |
@@ -4,6 +4,8 @@ |
#include "mojo/fetcher/local_fetcher.h" |
+#include <utility> |
+ |
#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/files/file_util.h" |
@@ -101,19 +103,19 @@ URLResponsePtr LocalFetcher::AsURLResponse(base::TaskRunner* task_runner, |
URLResponsePtr response(URLResponse::New()); |
response->url = String::From(url_); |
DataPipe data_pipe; |
- response->body = data_pipe.consumer_handle.Pass(); |
+ response->body = std::move(data_pipe.consumer_handle); |
int64 file_size; |
if (base::GetFileSize(path_, &file_size)) { |
response->headers = Array<HttpHeaderPtr>(1); |
HttpHeaderPtr header = HttpHeader::New(); |
header->name = "Content-Length"; |
header->value = base::StringPrintf("%" PRId64, file_size); |
- response->headers[0] = header.Pass(); |
+ response->headers[0] = std::move(header); |
} |
response->mime_type = String::From(MimeType()); |
- common::CopyFromFile(path_, data_pipe.producer_handle.Pass(), skip, |
+ common::CopyFromFile(path_, std::move(data_pipe.producer_handle), skip, |
task_runner, base::Bind(&IgnoreResult)); |
- return response.Pass(); |
+ return response; |
} |
void LocalFetcher::AsPath( |