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

Unified Diff: content/child/webmessageportchannel_impl.cc

Issue 1544293002: Convert Pass()→std::move() in //content (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 | « content/child/web_url_loader_impl_unittest.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webmessageportchannel_impl.cc
diff --git a/content/child/webmessageportchannel_impl.cc b/content/child/webmessageportchannel_impl.cc
index 7b893701a08d0b9ffba343c78073468e25ad24b0..6fdd08c3b2df7eecfb6e784cc1a08c3a16405f1c 100644
--- a/content/child/webmessageportchannel_impl.cc
+++ b/content/child/webmessageportchannel_impl.cc
@@ -5,6 +5,7 @@
#include "content/child/webmessageportchannel_impl.h"
#include <stddef.h>
+#include <utility>
#include "base/bind.h"
#include "base/values.h"
@@ -184,14 +185,14 @@ void WebMessagePortChannelImpl::postMessage(
converter->SetRegExpAllowed(true);
scoped_ptr<base::Value> message_as_value(converter->FromV8Value(
v8_value, v8::Isolate::GetCurrent()->GetCurrentContext()));
- message = MessagePortMessage(message_as_value.Pass());
+ message = MessagePortMessage(std::move(message_as_value));
}
if (!main_thread_task_runner_->BelongsToCurrentThread()) {
main_thread_task_runner_->PostTask(
FROM_HERE, base::Bind(&WebMessagePortChannelImpl::PostMessage, this,
- message, base::Passed(channels.Pass())));
+ message, base::Passed(std::move(channels))));
} else {
- PostMessage(message, channels.Pass());
+ PostMessage(message, std::move(channels));
}
}
@@ -199,7 +200,7 @@ void WebMessagePortChannelImpl::PostMessage(
const MessagePortMessage& message,
scoped_ptr<WebMessagePortChannelArray> channels) {
IPC::Message* msg = new MessagePortHostMsg_PostMessage(
- message_port_id_, message, ExtractMessagePortIDs(channels.Pass()));
+ message_port_id_, message, ExtractMessagePortIDs(std::move(channels)));
Send(msg);
}
« no previous file with comments | « content/child/web_url_loader_impl_unittest.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698