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

Unified Diff: components/web_view/public/cpp/web_view.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/pending_web_view_load.cc ('k') | components/web_view/test_frame_tree_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/public/cpp/web_view.cc
diff --git a/components/web_view/public/cpp/web_view.cc b/components/web_view/public/cpp/web_view.cc
index e8f581d9799ec29cf95529d3b0dcfd86d230e587..1d966b3b18be2017d7d28e9b4cd3fcaf5ce123e4 100644
--- a/components/web_view/public/cpp/web_view.cc
+++ b/components/web_view/public/cpp/web_view.cc
@@ -5,6 +5,7 @@
#include "components/web_view/public/cpp/web_view.h"
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "components/mus/public/cpp/window.h"
@@ -26,15 +27,15 @@ void WebView::Init(mojo::ApplicationImpl* app, mus::Window* window) {
mojom::WebViewClientPtr client;
mojo::InterfaceRequest<mojom::WebViewClient> client_request =
GetProxy(&client);
- binding_.Bind(client_request.Pass());
+ binding_.Bind(std::move(client_request));
mojom::WebViewFactoryPtr factory;
app->ConnectToService("mojo:web_view", &factory);
- factory->CreateWebView(client.Pass(), GetProxy(&web_view_));
+ factory->CreateWebView(std::move(client), GetProxy(&web_view_));
mus::mojom::WindowTreeClientPtr window_tree_client;
web_view_->GetWindowTreeClient(GetProxy(&window_tree_client));
- window->Embed(window_tree_client.Pass(),
+ window->Embed(std::move(window_tree_client),
mus::mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT,
base::Bind(&OnEmbed));
}
« no previous file with comments | « components/web_view/pending_web_view_load.cc ('k') | components/web_view/test_frame_tree_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698