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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« content/renderer/p2p/port_allocator.h ('K') | « content/renderer/p2p/port_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698