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

Unified Diff: remoting/host/register_support_host_request.cc

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/register_support_host_request.cc
diff --git a/remoting/host/register_support_host_request.cc b/remoting/host/register_support_host_request.cc
index 01955a6900c83fc14f652596d7ba6288463a2b1b..48d42279d2d61f5b756c4156bbfe65b99149da59 100644
--- a/remoting/host/register_support_host_request.cc
+++ b/remoting/host/register_support_host_request.cc
@@ -81,10 +81,10 @@ bool RegisterSupportHostRequest::OnSignalStrategyIncomingStanza(
return false;
}
-scoped_ptr<XmlElement> RegisterSupportHostRequest::CreateRegistrationRequest(
- const std::string& jid) {
- scoped_ptr<XmlElement> query(new XmlElement(
- QName(kChromotingXmlNamespace, kRegisterQueryTag)));
+std::unique_ptr<XmlElement>
+RegisterSupportHostRequest::CreateRegistrationRequest(const std::string& jid) {
+ std::unique_ptr<XmlElement> query(
+ new XmlElement(QName(kChromotingXmlNamespace, kRegisterQueryTag)));
XmlElement* public_key = new XmlElement(
QName(kChromotingXmlNamespace, kPublicKeyTag));
public_key->AddText(key_pair_->GetPublicKey());
@@ -93,10 +93,10 @@ scoped_ptr<XmlElement> RegisterSupportHostRequest::CreateRegistrationRequest(
return query;
}
-scoped_ptr<XmlElement> RegisterSupportHostRequest::CreateSignature(
+std::unique_ptr<XmlElement> RegisterSupportHostRequest::CreateSignature(
const std::string& jid) {
- scoped_ptr<XmlElement> signature_tag(new XmlElement(
- QName(kChromotingXmlNamespace, kSignatureTag)));
+ std::unique_ptr<XmlElement> signature_tag(
+ new XmlElement(QName(kChromotingXmlNamespace, kSignatureTag)));
int64_t time = static_cast<int64_t>(base::Time::Now().ToDoubleT());
std::string time_str(base::Int64ToString(time));
« no previous file with comments | « remoting/host/register_support_host_request.h ('k') | remoting/host/register_support_host_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698