| Index: webrtc/base/httpbase.cc
|
| diff --git a/webrtc/base/httpbase.cc b/webrtc/base/httpbase.cc
|
| index 81ca4cceeb109aa19f8cf0410b8205ef3c10c395..efdc8af8a9eeacff5f1325db64006301bbee5a2a 100644
|
| --- a/webrtc/base/httpbase.cc
|
| +++ b/webrtc/base/httpbase.cc
|
| @@ -8,6 +8,7 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| +#include <memory>
|
|
|
| #if defined(WEBRTC_WIN)
|
| #include "webrtc/base/win32.h"
|
| @@ -271,9 +272,8 @@ public:
|
| // When the method returns, we restore the old document. Ideally, we would
|
| // pass our StreamInterface* to DoReceiveLoop, but due to the callbacks
|
| // of HttpParser, we would still need to store the pointer temporarily.
|
| - scoped_ptr<StreamInterface>
|
| - stream(new BlockingMemoryStream(reinterpret_cast<char*>(buffer),
|
| - buffer_len));
|
| + std::unique_ptr<StreamInterface> stream(
|
| + new BlockingMemoryStream(reinterpret_cast<char*>(buffer), buffer_len));
|
|
|
| // Replace the existing document with our wrapped buffer.
|
| base_->data_->document.swap(stream);
|
|
|