Index: webrtc/base/fakenetwork.h |
diff --git a/webrtc/base/fakenetwork.h b/webrtc/base/fakenetwork.h |
index e3996e6649c5d21d4e6eb1d889d11d01120722a7..2dd2137aa81bbb953f9ae41b2b005118d7fd6c72 100644 |
--- a/webrtc/base/fakenetwork.h |
+++ b/webrtc/base/fakenetwork.h |
@@ -11,6 +11,7 @@ |
#ifndef WEBRTC_BASE_FAKENETWORK_H_ |
#define WEBRTC_BASE_FAKENETWORK_H_ |
+#include <memory> |
#include <string> |
#include <utility> |
#include <vector> |
@@ -99,9 +100,9 @@ class FakeNetworkManager : public NetworkManagerBase, |
prefix_length = kFakeIPv6NetworkPrefixLength; |
} |
IPAddress prefix = TruncateIP(it->first.ipaddr(), prefix_length); |
- scoped_ptr<Network> net(new Network(it->first.hostname(), |
- it->first.hostname(), prefix, |
- prefix_length, it->second)); |
+ std::unique_ptr<Network> net(new Network(it->first.hostname(), |
+ it->first.hostname(), prefix, |
+ prefix_length, it->second)); |
net->set_default_local_address_provider(this); |
net->AddIP(it->first.ipaddr()); |
networks.push_back(net.release()); |