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

Unified Diff: remoting/host/native_messaging/native_messaging_reader.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
Index: remoting/host/native_messaging/native_messaging_reader.cc
diff --git a/remoting/host/native_messaging/native_messaging_reader.cc b/remoting/host/native_messaging/native_messaging_reader.cc
index f5cbb87fba3db8cb44fc16f04068024a195d1eff..6d2beeb2f5a290ce3c5258ed52b151b70672d05a 100644
--- a/remoting/host/native_messaging/native_messaging_reader.cc
+++ b/remoting/host/native_messaging/native_messaging_reader.cc
@@ -113,7 +113,7 @@ void NativeMessagingReader::Core::ReadMessage() {
return;
}
- scoped_ptr<base::Value> message = base::JSONReader::Read(message_json);
+ std::unique_ptr<base::Value> message = base::JSONReader::Read(message_json);
if (!message) {
LOG(ERROR) << "Failed to parse JSON message: " << message.get();
NotifyEof();
@@ -160,7 +160,7 @@ void NativeMessagingReader::Start(MessageCallback message_callback,
}
void NativeMessagingReader::InvokeMessageCallback(
- scoped_ptr<base::Value> message) {
+ std::unique_ptr<base::Value> message) {
message_callback_.Run(std::move(message));
}

Powered by Google App Engine
This is Rietveld 408576698