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

Unified Diff: remoting/protocol/third_party_host_authenticator.h

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/protocol/third_party_host_authenticator.h
diff --git a/remoting/protocol/third_party_host_authenticator.h b/remoting/protocol/third_party_host_authenticator.h
index f9755a9e02dd0a09e1ac31a4119a86a5f73733bf..67feed28a5612ea12f1d15c36b17377afe687113 100644
--- a/remoting/protocol/third_party_host_authenticator.h
+++ b/remoting/protocol/third_party_host_authenticator.h
@@ -5,11 +5,11 @@
#ifndef REMOTING_PROTOCOL_THIRD_PARTY_HOST_AUTHENTICATOR_H_
#define REMOTING_PROTOCOL_THIRD_PARTY_HOST_AUTHENTICATOR_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/third_party_authenticator_base.h"
namespace remoting {
@@ -32,7 +32,7 @@ class ThirdPartyHostAuthenticator : public ThirdPartyAuthenticatorBase {
// to the client and is used to obtain the shared secret.
ThirdPartyHostAuthenticator(
const CreateBaseAuthenticatorCallback& create_base_authenticator_callback,
- scoped_ptr<TokenValidator> token_validator);
+ std::unique_ptr<TokenValidator> token_validator);
~ThirdPartyHostAuthenticator() override;
protected:
@@ -47,7 +47,7 @@ class ThirdPartyHostAuthenticator : public ThirdPartyAuthenticatorBase {
const std::string& shared_secret);
CreateBaseAuthenticatorCallback create_base_authenticator_callback_;
- scoped_ptr<TokenValidator> token_validator_;
+ std::unique_ptr<TokenValidator> token_validator_;
DISALLOW_COPY_AND_ASSIGN(ThirdPartyHostAuthenticator);
};
« no previous file with comments | « remoting/protocol/third_party_client_authenticator.h ('k') | remoting/protocol/third_party_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698