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

Unified Diff: mojo/package_manager/package_manager_impl.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/package_manager/content_handler_unittest.cc ('k') | mojo/platform_handle/platform_handle_functions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/package_manager/package_manager_impl.cc
diff --git a/mojo/package_manager/package_manager_impl.cc b/mojo/package_manager/package_manager_impl.cc
index 069ab6ae47aa04922ffa3d8e622bebd1497a64c6..32e7d4f1bf6e37b85f269f7373176f21be7b9b2b 100644
--- a/mojo/package_manager/package_manager_impl.cc
+++ b/mojo/package_manager/package_manager_impl.cc
@@ -4,6 +4,8 @@
#include "mojo/package_manager/package_manager_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "mojo/application/public/interfaces/content_handler.mojom.h"
#include "mojo/fetcher/about_fetcher.h"
@@ -122,7 +124,7 @@ void PackageManagerImpl::FetchRequest(
// Ownership of this object is transferred to |loader_callback|.
// TODO(beng): this is eff'n weird.
- new fetcher::NetworkFetcher(disable_cache_, request.Pass(),
+ new fetcher::NetworkFetcher(disable_cache_, std::move(request),
url_loader_factory_.get(), loader_callback);
}
@@ -141,7 +143,8 @@ uint32_t PackageManagerImpl::HandleWithContentHandler(
&response)) {
ContentHandlerConnection* connection =
GetContentHandler(content_handler_identity, source);
- connection->StartApplication(application_request->Pass(), response.Pass());
+ connection->StartApplication(std::move(*application_request),
+ std::move(response));
return connection->id();
}
return Shell::kInvalidContentHandlerID;
« no previous file with comments | « mojo/package_manager/content_handler_unittest.cc ('k') | mojo/platform_handle/platform_handle_functions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698