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

Unified Diff: remoting/client/plugin/delegating_signal_strategy.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
« no previous file with comments | « remoting/client/plugin/delegating_signal_strategy.h ('k') | remoting/client/plugin/pepper_input_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/delegating_signal_strategy.cc
diff --git a/remoting/client/plugin/delegating_signal_strategy.cc b/remoting/client/plugin/delegating_signal_strategy.cc
index bb4bd938edfaef1e83b1e0ebf360e565697a084f..bc86f41b0d38faddf42816735e5312d80899d654 100644
--- a/remoting/client/plugin/delegating_signal_strategy.cc
+++ b/remoting/client/plugin/delegating_signal_strategy.cc
@@ -21,7 +21,7 @@ DelegatingSignalStrategy::~DelegatingSignalStrategy() {
}
void DelegatingSignalStrategy::OnIncomingMessage(const std::string& message) {
- scoped_ptr<buzz::XmlElement> stanza(buzz::XmlElement::ForStr(message));
+ std::unique_ptr<buzz::XmlElement> stanza(buzz::XmlElement::ForStr(message));
if (!stanza.get()) {
LOG(WARNING) << "Malformed XMPP stanza received: " << message;
return;
@@ -61,7 +61,8 @@ void DelegatingSignalStrategy::RemoveListener(Listener* listener) {
listeners_.RemoveObserver(listener);
}
-bool DelegatingSignalStrategy::SendStanza(scoped_ptr<buzz::XmlElement> stanza) {
+bool DelegatingSignalStrategy::SendStanza(
+ std::unique_ptr<buzz::XmlElement> stanza) {
send_iq_callback_.Run(stanza->Str());
return true;
}
« no previous file with comments | « remoting/client/plugin/delegating_signal_strategy.h ('k') | remoting/client/plugin/pepper_input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698