Chromium Code Reviews| Index: content/renderer/p2p/port_allocator.cc |
| diff --git a/content/renderer/p2p/port_allocator.cc b/content/renderer/p2p/port_allocator.cc |
| index f2a9f1d912c19d1b91ef6a4f0515fd0c1485839e..d6ffeca76e8c119057319c150f4596393aae185f 100644 |
| --- a/content/renderer/p2p/port_allocator.cc |
| +++ b/content/renderer/p2p/port_allocator.cc |
| @@ -27,6 +27,7 @@ P2PPortAllocator::P2PPortAllocator( |
| socket_dispatcher_(socket_dispatcher), |
| config_(config), |
| origin_(origin) { |
| + RTC_DCHECK(network_manager); |
|
Sergey Ulanov
2016/07/07 21:38:23
This code is not in webrtc, so this should be DCHE
Taylor_Brandstetter
2016/07/07 21:49:06
Thanks for catching that. Force of habit.
|
| uint32_t flags = 0; |
| if (!config_.enable_multiple_routes) { |
| flags |= cricket::PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION; |
| @@ -51,4 +52,9 @@ P2PPortAllocator::P2PPortAllocator( |
| P2PPortAllocator::~P2PPortAllocator() {} |
| +void P2PPortAllocator::Initialize() { |
| + BasicPortAllocator::Initialize(); |
| + network_manager_->Initialize(); |
| +} |
| + |
| } // namespace content |