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

Unified Diff: remoting/host/native_messaging/pipe_messaging_channel.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 months 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 | « remoting/host/native_messaging/pipe_messaging_channel.h ('k') | remoting/host/oauth_token_getter_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/native_messaging/pipe_messaging_channel.cc
diff --git a/remoting/host/native_messaging/pipe_messaging_channel.cc b/remoting/host/native_messaging/pipe_messaging_channel.cc
index a1e8831ee8919eb004a37f63d93d4f5faa6e1fc3..014e67de4c486dfeb12d5b5e6ac7ef1ceb097e6e 100644
--- a/remoting/host/native_messaging/pipe_messaging_channel.cc
+++ b/remoting/host/native_messaging/pipe_messaging_channel.cc
@@ -68,14 +68,15 @@ void PipeMessagingChannel::Start(EventHandler* event_handler) {
base::Bind(&PipeMessagingChannel::Shutdown, weak_ptr_));
}
-void PipeMessagingChannel::ProcessMessage(scoped_ptr<base::Value> message) {
+void PipeMessagingChannel::ProcessMessage(
+ std::unique_ptr<base::Value> message) {
DCHECK(CalledOnValidThread());
if (event_handler_)
event_handler_->OnMessage(std::move(message));
}
-void PipeMessagingChannel::SendMessage(scoped_ptr<base::Value> message) {
+void PipeMessagingChannel::SendMessage(std::unique_ptr<base::Value> message) {
DCHECK(CalledOnValidThread());
bool success = message && native_messaging_writer_;
« no previous file with comments | « remoting/host/native_messaging/pipe_messaging_channel.h ('k') | remoting/host/oauth_token_getter_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698