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

Unified Diff: remoting/host/pam_authorization_factory_posix.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/host/pam_authorization_factory_posix.h
diff --git a/remoting/host/pam_authorization_factory_posix.h b/remoting/host/pam_authorization_factory_posix.h
index bc35a2b1f604951cab75b85ca90a38b61949f3ba..f9dd03869596d8af3ce7386ad314736997c1df09 100644
--- a/remoting/host/pam_authorization_factory_posix.h
+++ b/remoting/host/pam_authorization_factory_posix.h
@@ -5,9 +5,10 @@
#ifndef REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
#define REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
+#include <memory>
+
#include "remoting/protocol/authenticator.h"
-#include "base/memory/scoped_ptr.h"
// PamAuthorizationFactory abuses the AuthenticatorFactory interface to apply
// PAM-based authorization on top of some underlying authentication scheme.
@@ -17,15 +18,15 @@ namespace remoting {
class PamAuthorizationFactory : public protocol::AuthenticatorFactory {
public:
PamAuthorizationFactory(
- scoped_ptr<protocol::AuthenticatorFactory> underlying);
+ std::unique_ptr<protocol::AuthenticatorFactory> underlying);
~PamAuthorizationFactory() override;
- scoped_ptr<protocol::Authenticator> CreateAuthenticator(
+ std::unique_ptr<protocol::Authenticator> CreateAuthenticator(
const std::string& local_jid,
const std::string& remote_jid) override;
private:
- scoped_ptr<protocol::AuthenticatorFactory> underlying_;
+ std::unique_ptr<protocol::AuthenticatorFactory> underlying_;
};
} // namespace remoting
« no previous file with comments | « remoting/host/pairing_registry_delegate_win_unittest.cc ('k') | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698