| Index: mojo/fetcher/data_fetcher.cc
|
| diff --git a/mojo/fetcher/data_fetcher.cc b/mojo/fetcher/data_fetcher.cc
|
| index d5f875e28f7fe246605e7d6f514b7c0b274f385a..5a9465b158d79f1d2d314485a777a012502e0956 100644
|
| --- a/mojo/fetcher/data_fetcher.cc
|
| +++ b/mojo/fetcher/data_fetcher.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "mojo/fetcher/data_fetcher.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/bind.h"
|
| #include "base/files/file_path.h"
|
| #include "base/location.h"
|
| @@ -31,7 +33,7 @@ ScopedDataPipeConsumerHandle CreateConsumerHandleForString(
|
| WriteDataRaw(data_pipe.producer_handle.get(), data.data(), &num_bytes,
|
| MOJO_WRITE_DATA_FLAG_ALL_OR_NONE);
|
| CHECK_EQ(MOJO_RESULT_OK, result);
|
| - return data_pipe.consumer_handle.Pass();
|
| + return std::move(data_pipe.consumer_handle);
|
| }
|
|
|
| // static
|
| @@ -83,7 +85,7 @@ GURL DataFetcher::GetRedirectReferer() const {
|
| URLResponsePtr DataFetcher::AsURLResponse(base::TaskRunner* task_runner,
|
| uint32_t skip) {
|
| DCHECK(response_);
|
| - return response_.Pass();
|
| + return std::move(response_);
|
| }
|
|
|
| void DataFetcher::AsPath(
|
|
|