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

Unified Diff: components/web_view/web_view_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/url_request_cloneable.cc ('k') | components/web_view/web_view_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/web_view_application_delegate.cc
diff --git a/components/web_view/web_view_application_delegate.cc b/components/web_view/web_view_application_delegate.cc
index 2a4c48eafd96a8504ee6c8ef39601023187738e0..d66b775906b5b403776c59b1cd2b0803c6809f63 100644
--- a/components/web_view/web_view_application_delegate.cc
+++ b/components/web_view/web_view_application_delegate.cc
@@ -4,6 +4,8 @@
#include "components/web_view/web_view_application_delegate.h"
+#include <utility>
+
#include "components/web_view/web_view_impl.h"
#include "mojo/application/public/cpp/application_connection.h"
@@ -26,13 +28,13 @@ bool WebViewApplicationDelegate::ConfigureIncomingConnection(
void WebViewApplicationDelegate::CreateWebView(
mojom::WebViewClientPtr client,
mojo::InterfaceRequest<mojom::WebView> web_view) {
- new WebViewImpl(app_, client.Pass(), web_view.Pass());
+ new WebViewImpl(app_, std::move(client), std::move(web_view));
}
void WebViewApplicationDelegate::Create(
mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<mojom::WebViewFactory> request) {
- factory_bindings_.AddBinding(this, request.Pass());
+ factory_bindings_.AddBinding(this, std::move(request));
}
} // namespace web_view
« no previous file with comments | « components/web_view/url_request_cloneable.cc ('k') | components/web_view/web_view_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698