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

Unified Diff: remoting/protocol/audio_writer.cc

Issue 10556020: Cleaned up the reader and writer create methods to return scoped_ptr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary code Created 8 years, 6 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/protocol/audio_writer.h ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_writer.cc
diff --git a/remoting/protocol/audio_writer.cc b/remoting/protocol/audio_writer.cc
index dc8a939e587078dc89e9f90bda6ec2a26931a189..05ae0c23c74088383c1e2b7e22b8daea35370d0e 100644
--- a/remoting/protocol/audio_writer.cc
+++ b/remoting/protocol/audio_writer.cc
@@ -67,9 +67,9 @@ void AudioWriter::ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
}
// static
-AudioWriter* AudioWriter::Create(const SessionConfig& config) {
+scoped_ptr<AudioWriter> AudioWriter::Create(const SessionConfig& config) {
// TODO(kxing): Support different session configurations.
- return new AudioWriter();
+ return scoped_ptr<AudioWriter>(new AudioWriter());
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/audio_writer.h ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698