Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "content/renderer/p2p/port_allocator.h" | 5 #include "content/renderer/p2p/port_allocator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); | 44 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); |
| 45 bool enable_webrtc_stun_origin = | 45 bool enable_webrtc_stun_origin = |
| 46 cmd_line->HasSwitch(switches::kEnableWebRtcStunOrigin); | 46 cmd_line->HasSwitch(switches::kEnableWebRtcStunOrigin); |
| 47 if (enable_webrtc_stun_origin) { | 47 if (enable_webrtc_stun_origin) { |
| 48 set_origin(origin_.spec()); | 48 set_origin(origin_.spec()); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 P2PPortAllocator::~P2PPortAllocator() {} | 52 P2PPortAllocator::~P2PPortAllocator() {} |
| 53 | 53 |
| 54 void P2PPortAllocator::Initialize() { | |
| 55 if (network_manager_) { | |
|
Sergey Ulanov
2016/07/07 18:09:08
call cricket::BasicPortAllocator::Initialize() her
Sergey Ulanov
2016/07/07 18:09:08
nit: Do you really need this condition? AFAICT net
Taylor_Brandstetter
2016/07/07 21:30:28
Done.
Taylor_Brandstetter
2016/07/07 21:30:28
I didn't see any "RTC_DCHECK(network_manager_)" so
| |
| 56 network_manager_->Initialize(); | |
| 57 } | |
| 58 } | |
| 59 | |
| 54 } // namespace content | 60 } // namespace content |
| OLD | NEW |