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

Unified Diff: remoting/host/security_key/gnubby_extension_session.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/security_key/gnubby_extension_session.h
diff --git a/remoting/host/security_key/gnubby_extension_session.h b/remoting/host/security_key/gnubby_extension_session.h
index 82b6703f780c29c99024c943d1d2b36d0c116ecc..74ad58f3a10150d16566dd486338102510307d58 100644
--- a/remoting/host/security_key/gnubby_extension_session.h
+++ b/remoting/host/security_key/gnubby_extension_session.h
@@ -5,11 +5,11 @@
#ifndef REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_SESSION_H_
#define REMOTING_HOST_SECURITY_KEY_GNUBBY_EXTENSION_SESSION_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
#include "remoting/host/host_extension_session.h"
@@ -38,7 +38,7 @@ class GnubbyExtensionSession : public HostExtensionSession {
// Allows the underlying GnubbyAuthHandler to be overridden for unit testing.
void SetGnubbyAuthHandlerForTesting(
- scoped_ptr<GnubbyAuthHandler> gnubby_auth_handler);
+ std::unique_ptr<GnubbyAuthHandler> gnubby_auth_handler);
private:
// These methods process specific gnubby extension message types.
@@ -55,7 +55,7 @@ class GnubbyExtensionSession : public HostExtensionSession {
protocol::ClientStub* client_stub_ = nullptr;
// Handles platform specific gnubby operations.
- scoped_ptr<GnubbyAuthHandler> gnubby_auth_handler_;
+ std::unique_ptr<GnubbyAuthHandler> gnubby_auth_handler_;
DISALLOW_COPY_AND_ASSIGN(GnubbyExtensionSession);
};
« no previous file with comments | « remoting/host/security_key/gnubby_extension.cc ('k') | remoting/host/security_key/gnubby_extension_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698