Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1671)

Unified Diff: mojo/fetcher/data_fetcher.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/fetcher/about_fetcher_unittest.cc ('k') | mojo/fetcher/data_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « mojo/fetcher/about_fetcher_unittest.cc ('k') | mojo/fetcher/data_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698