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

Unified Diff: components/web_view/test_runner/test_runner_application_delegate.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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 | « components/web_view/test_frame_tree_delegate.cc ('k') | components/web_view/url_request_cloneable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/test_runner/test_runner_application_delegate.cc
diff --git a/components/web_view/test_runner/test_runner_application_delegate.cc b/components/web_view/test_runner/test_runner_application_delegate.cc
index b2b25846eaa999893839f2d1f0f31d8b4efd1b9c..b0cf38d8b102053d58dc3acf5519c86169bce158 100644
--- a/components/web_view/test_runner/test_runner_application_delegate.cc
+++ b/components/web_view/test_runner/test_runner_application_delegate.cc
@@ -5,6 +5,7 @@
#include "components/web_view/test_runner/test_runner_application_delegate.h"
#include <iostream>
+#include <utility>
#include "base/bind.h"
#include "base/command_line.h"
@@ -51,7 +52,7 @@ void TestRunnerApplicationDelegate::LaunchURL(const GURL& test_url) {
}
mojo::URLRequestPtr request(mojo::URLRequest::New());
request->url = test_url.spec();
- web_view_->web_view()->LoadRequest(request.Pass());
+ web_view_->web_view()->LoadRequest(std::move(request));
}
void TestRunnerApplicationDelegate::Terminate() {
@@ -123,7 +124,7 @@ void TestRunnerApplicationDelegate::OnConnectionLost(
void TestRunnerApplicationDelegate::TopLevelNavigateRequest(
mojo::URLRequestPtr request) {
- web_view_->web_view()->LoadRequest(request.Pass());
+ web_view_->web_view()->LoadRequest(std::move(request));
}
void TestRunnerApplicationDelegate::TopLevelNavigationStarted(
@@ -158,7 +159,7 @@ void TestRunnerApplicationDelegate::TestFinished() {
void TestRunnerApplicationDelegate::Create(
mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<web_view::LayoutTestRunner> request) {
- layout_test_runner_.AddBinding(this, request.Pass());
+ layout_test_runner_.AddBinding(this, std::move(request));
}
} // namespace web_view
« no previous file with comments | « components/web_view/test_frame_tree_delegate.cc ('k') | components/web_view/url_request_cloneable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698