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

Unified Diff: content/renderer/p2p/port_allocator.cc

Issue 2113523003: Do FilteringNetworkManager::CheckPermission from new Initialize method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Responding to comments. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698