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

Unified Diff: mojo/package_manager/capability_filter_content_handler_unittest.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/message_pump/handle_watcher_unittest.cc ('k') | mojo/package_manager/content_handler_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/package_manager/capability_filter_content_handler_unittest.cc
diff --git a/mojo/package_manager/capability_filter_content_handler_unittest.cc b/mojo/package_manager/capability_filter_content_handler_unittest.cc
index cdb4721217e16a725db531deec3a91feccdafc2d..9c5508524bfdb0841e1bc92c3db1ad6ff6e18418 100644
--- a/mojo/package_manager/capability_filter_content_handler_unittest.cc
+++ b/mojo/package_manager/capability_filter_content_handler_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "base/path_service.h"
#include "mojo/application/public/cpp/application_connection.h"
#include "mojo/application/public/cpp/application_delegate.h"
@@ -41,7 +43,7 @@ class TestFetcher : public shell::Fetcher {
uint32_t skip) override {
URLResponsePtr response(URLResponse::New());
response->url = url_.spec();
- return response.Pass();
+ return response;
}
void AsPath(
base::TaskRunner* task_runner,
@@ -92,7 +94,7 @@ class TestContentHandler : public ApplicationDelegate,
// Overridden from InterfaceFactory<ContentHandler>:
void Create(ApplicationConnection* connection,
InterfaceRequest<ContentHandler> request) override {
- bindings_.AddBinding(this, request.Pass());
+ bindings_.AddBinding(this, std::move(request));
}
// Overridden from ContentHandler:
@@ -102,8 +104,8 @@ class TestContentHandler : public ApplicationDelegate,
const Callback<void()>& destruct_callback) override {
scoped_ptr<ApplicationDelegate> delegate(new shell::test::TestApplication);
embedded_apps_.push_back(
- new ApplicationImpl(delegate.get(), application.Pass()));
- embedded_app_delegates_.push_back(delegate.Pass());
+ new ApplicationImpl(delegate.get(), std::move(application)));
+ embedded_app_delegates_.push_back(std::move(delegate));
destruct_callback.Run();
}
« no previous file with comments | « mojo/message_pump/handle_watcher_unittest.cc ('k') | mojo/package_manager/content_handler_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698