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

Unified Diff: mojo/fetcher/about_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/converters/transform/transform_type_converters.cc ('k') | mojo/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/fetcher/about_fetcher.cc
diff --git a/mojo/fetcher/about_fetcher.cc b/mojo/fetcher/about_fetcher.cc
index c09f09d133d5b47715a73e04b07c948936fcca6a..765faa8bdff8e5bc76181511ab4be1b72dd1d04b 100644
--- a/mojo/fetcher/about_fetcher.cc
+++ b/mojo/fetcher/about_fetcher.cc
@@ -4,6 +4,8 @@
#include "mojo/fetcher/about_fetcher.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/logging.h"
@@ -17,7 +19,7 @@ namespace {
void RunFetcherCallback(const shell::Fetcher::FetchCallback& callback,
scoped_ptr<shell::Fetcher> fetcher,
bool success) {
- callback.Run(success ? fetcher.Pass() : nullptr);
+ callback.Run(success ? std::move(fetcher) : nullptr);
}
} // namespace
@@ -83,7 +85,7 @@ URLResponsePtr AboutFetcher::AsURLResponse(base::TaskRunner* task_runner,
// doesn't have a body.
DCHECK(!response_->body.is_valid());
- return response_.Pass();
+ return std::move(response_);
}
void AboutFetcher::AsPath(
« no previous file with comments | « mojo/converters/transform/transform_type_converters.cc ('k') | mojo/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698