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

Unified Diff: components/web_view/test_frame_tree_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
Index: components/web_view/test_frame_tree_delegate.cc
diff --git a/components/web_view/test_frame_tree_delegate.cc b/components/web_view/test_frame_tree_delegate.cc
index 8c439b238e4abb8e1a408371a2c4bea4c54ffccb..90d8fe9cbb423c7a33dafd4924918bb6417c244b 100644
--- a/components/web_view/test_frame_tree_delegate.cc
+++ b/components/web_view/test_frame_tree_delegate.cc
@@ -4,6 +4,8 @@
#include "components/web_view/test_frame_tree_delegate.h"
+#include <utility>
+
#include "base/run_loop.h"
#include "components/web_view/client_initiated_frame_connection.h"
#include "components/web_view/frame_connection.h"
@@ -51,7 +53,7 @@ void TestFrameTreeDelegate::WaitForFrameDisconnected(Frame* frame) {
scoped_ptr<FrameUserData> TestFrameTreeDelegate::CreateUserDataForNewFrame(
mojom::FrameClientPtr frame_client) {
return make_scoped_ptr(
- new ClientInitiatedFrameConnection(frame_client.Pass()));
+ new ClientInitiatedFrameConnection(std::move(frame_client)));
}
bool TestFrameTreeDelegate::CanPostMessageEventToFrame(
@@ -74,7 +76,7 @@ void TestFrameTreeDelegate::CanNavigateFrame(
mojo::URLRequestPtr request,
const CanNavigateFrameCallback& callback) {
FrameConnection::CreateConnectionForCanNavigateFrame(
- app_, target, request.Pass(), callback);
+ app_, target, std::move(request), callback);
}
void TestFrameTreeDelegate::DidStartNavigation(Frame* frame) {}
« no previous file with comments | « components/web_view/public/cpp/web_view.cc ('k') | components/web_view/test_runner/test_runner_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698