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

Unified Diff: remoting/protocol/pairing_authenticator_base.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/pairing_authenticator_base.h
diff --git a/remoting/protocol/pairing_authenticator_base.h b/remoting/protocol/pairing_authenticator_base.h
index 1b3104ea815c00142fa19f633cd15e4c92325acb..f1ccb3b29cc0f69b932aacea49ba9703aaff62d1 100644
--- a/remoting/protocol/pairing_authenticator_base.h
+++ b/remoting/protocol/pairing_authenticator_base.h
@@ -48,9 +48,10 @@ class PairingAuthenticatorBase : public Authenticator {
RejectionReason rejection_reason() const override;
void ProcessMessage(const buzz::XmlElement* message,
const base::Closure& resume_callback) override;
- scoped_ptr<buzz::XmlElement> GetNextMessage() override;
+ std::unique_ptr<buzz::XmlElement> GetNextMessage() override;
const std::string& GetAuthKey() const override;
- scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override;
+ std::unique_ptr<ChannelAuthenticator> CreateChannelAuthenticator()
+ const override;
protected:
// Create a Spake2 authenticator in the specified state, prompting the user
@@ -67,7 +68,7 @@ class PairingAuthenticatorBase : public Authenticator {
// The underlying SPAKE2 authenticator, created with either the PIN or the
// Paired Secret by the derived class.
- scoped_ptr<Authenticator> spake2_authenticator_;
+ std::unique_ptr<Authenticator> spake2_authenticator_;
// Derived classes must set this to True if the underlying authenticator is
// using the Paired Secret.
« no previous file with comments | « remoting/protocol/negotiating_host_authenticator.cc ('k') | remoting/protocol/pairing_authenticator_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698