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

Unified Diff: remoting/test/app_remoting_connection_helper.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/test/app_remoting_connection_helper.h ('k') | remoting/test/app_remoting_latency_test_fixture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/app_remoting_connection_helper.cc
diff --git a/remoting/test/app_remoting_connection_helper.cc b/remoting/test/app_remoting_connection_helper.cc
index 215a1a2b15baee8d2d6aa7823b571510bfafd4df..77ea5b6a654af49de7dc5d669a60338bab7edd81 100644
--- a/remoting/test/app_remoting_connection_helper.cc
+++ b/remoting/test/app_remoting_connection_helper.cc
@@ -47,7 +47,7 @@ AppRemotingConnectionHelper::~AppRemotingConnectionHelper() {
}
void AppRemotingConnectionHelper::Initialize(
- scoped_ptr<TestChromotingClient> test_chromoting_client) {
+ std::unique_ptr<TestChromotingClient> test_chromoting_client) {
client_ = std::move(test_chromoting_client);
client_->AddRemoteConnectionObserver(this);
}
@@ -184,7 +184,8 @@ void AppRemotingConnectionHelper::HandleOnWindowAddedMessage(
DCHECK_EQ(message.type(), "onWindowAdded");
const base::DictionaryValue* message_data = nullptr;
- scoped_ptr<base::Value> host_message = base::JSONReader::Read(message.data());
+ std::unique_ptr<base::Value> host_message =
+ base::JSONReader::Read(message.data());
if (!host_message.get() || !host_message->GetAsDictionary(&message_data)) {
LOG(ERROR) << "onWindowAdded message received was not valid JSON.";
if (run_loop_) {
« no previous file with comments | « remoting/test/app_remoting_connection_helper.h ('k') | remoting/test/app_remoting_latency_test_fixture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698