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

Unified Diff: remoting/host/register_support_host_request.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
« no previous file with comments | « remoting/host/policy_watcher_unittest.cc ('k') | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/register_support_host_request.h
diff --git a/remoting/host/register_support_host_request.h b/remoting/host/register_support_host_request.h
index b249883f4ce8ee3e6bdf86989e9ed2fcef0fd9a7..63f155f97e144bc13876d16ed6e92422ca7e806e 100644
--- a/remoting/host/register_support_host_request.h
+++ b/remoting/host/register_support_host_request.h
@@ -5,12 +5,12 @@
#ifndef REMOTING_HOST_REGISTER_SUPPORT_HOST_REQUEST_H_
#define REMOTING_HOST_REGISTER_SUPPORT_HOST_REQUEST_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/signaling/signal_strategy.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
@@ -61,9 +61,9 @@ class RegisterSupportHostRequest : public SignalStrategy::Listener {
private:
void DoSend();
- scoped_ptr<buzz::XmlElement> CreateRegistrationRequest(
+ std::unique_ptr<buzz::XmlElement> CreateRegistrationRequest(
const std::string& jid);
- scoped_ptr<buzz::XmlElement> CreateSignature(const std::string& jid);
+ std::unique_ptr<buzz::XmlElement> CreateSignature(const std::string& jid);
void ProcessResponse(IqRequest* request, const buzz::XmlElement* response);
void ParseResponse(const buzz::XmlElement* response,
@@ -79,8 +79,8 @@ class RegisterSupportHostRequest : public SignalStrategy::Listener {
std::string directory_bot_jid_;
RegisterCallback callback_;
- scoped_ptr<IqSender> iq_sender_;
- scoped_ptr<IqRequest> request_;
+ std::unique_ptr<IqSender> iq_sender_;
+ std::unique_ptr<IqRequest> request_;
DISALLOW_COPY_AND_ASSIGN(RegisterSupportHostRequest);
};
« no previous file with comments | « remoting/host/policy_watcher_unittest.cc ('k') | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698