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

Side by Side Diff: remoting/protocol/video_writer.cc

Issue 16964002: Rewrite scoped_ptr<T>(NULL) to use the default ctor in remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/protocol/video_writer.h" 5 #include "remoting/protocol/video_writer.h"
6 6
7 #include "remoting/protocol/session_config.h" 7 #include "remoting/protocol/session_config.h"
8 #include "remoting/protocol/protobuf_video_writer.h" 8 #include "remoting/protocol/protobuf_video_writer.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 namespace protocol { 11 namespace protocol {
12 12
13 VideoWriter::~VideoWriter() { } 13 VideoWriter::~VideoWriter() { }
14 14
15 // static 15 // static
16 scoped_ptr<VideoWriter> VideoWriter::Create(const SessionConfig& config) { 16 scoped_ptr<VideoWriter> VideoWriter::Create(const SessionConfig& config) {
17 const ChannelConfig& video_config = config.video_config(); 17 const ChannelConfig& video_config = config.video_config();
18 if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) { 18 if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) {
19 return scoped_ptr<VideoWriter>(new ProtobufVideoWriter()); 19 return scoped_ptr<VideoWriter>(new ProtobufVideoWriter());
20 } 20 }
21 return scoped_ptr<VideoWriter>(NULL); 21 return scoped_ptr<VideoWriter>();
22 } 22 }
23 23
24 } // namespace protocol 24 } // namespace protocol
25 } // namespace remoting 25 } // namespace remoting
OLDNEW
« remoting/codec/video_encoder_vp8.cc ('K') | « remoting/protocol/video_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698