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

Unified Diff: remoting/protocol/secure_channel_factory.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/protocol/secure_channel_factory.h ('k') | remoting/protocol/session_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/secure_channel_factory.cc
diff --git a/remoting/protocol/secure_channel_factory.cc b/remoting/protocol/secure_channel_factory.cc
index 9739bbd183823c9ff669ec722053cc7da1063c79..40b02a0e364052c204b32c674274ad59e853fb73 100644
--- a/remoting/protocol/secure_channel_factory.cc
+++ b/remoting/protocol/secure_channel_factory.cc
@@ -51,7 +51,7 @@ void SecureChannelFactory::CancelChannelCreation(
void SecureChannelFactory::OnBaseChannelCreated(
const std::string& name,
const ChannelCreatedCallback& callback,
- scoped_ptr<P2PStreamSocket> socket) {
+ std::unique_ptr<P2PStreamSocket> socket) {
if (!socket) {
callback.Run(nullptr);
return;
@@ -70,7 +70,7 @@ void SecureChannelFactory::OnSecureChannelCreated(
const std::string& name,
const ChannelCreatedCallback& callback,
int error,
- scoped_ptr<P2PStreamSocket> socket) {
+ std::unique_ptr<P2PStreamSocket> socket) {
DCHECK((socket && error == net::OK) || (!socket && error != net::OK));
AuthenticatorMap::iterator it = channel_authenticators_.find(name);
« no previous file with comments | « remoting/protocol/secure_channel_factory.h ('k') | remoting/protocol/session_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698