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

Issue 2113523003: Do FilteringNetworkManager::CheckPermission from new Initialize method. (Closed)

Created:
4 years, 5 months ago by Taylor_Brandstetter
Modified:
4 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do FilteringNetworkManager::CheckPermission from new Initialize method. This is guaranteed to be called from PeerConnection on the correct thread when the PeerConnection is initializing. This means it's no longer PeerConnectionDependencyFactory's responsibility to initialize it, and it can be initialized in a thread safe way. BUG=617648 Committed: https://crrev.com/c6dcde40c5dc3ad78ee039f6a7e9e71437256512 Cr-Commit-Position: refs/heads/master@{#404395}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Responding to comments. #

Total comments: 2

Patch Set 3 : Changing RTC_DCHECK to DCHECK and adding a couple more. #

Patch Set 4 : Fixing the network_manager DCHECK. It's std::moved so must check member variable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -29 lines) Patch
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M content/renderer/p2p/filtering_network_manager.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/p2p/filtering_network_manager.cc View 1 3 chunks +22 lines, -16 lines 0 comments Download
M content/renderer/p2p/filtering_network_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/p2p/port_allocator.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/p2p/port_allocator.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
Taylor_Brandstetter
tommi@chromium.org: Please review changes in peer_connection_dependency_factory.cc. sergeyu@chromium.org: Please review changes /p2p/. This is the solution ...
4 years, 5 months ago (2016-06-29 23:34:23 UTC) #2
tommi (sloooow) - chröme
lgtm
4 years, 5 months ago (2016-06-30 10:48:54 UTC) #3
Taylor_Brandstetter
Pinging Sergey. We should try to get this into M53.
4 years, 5 months ago (2016-07-07 01:09:33 UTC) #4
Sergey Ulanov
LGTM after my comments are addressed. Sorry for the delay - didn't know you were ...
4 years, 5 months ago (2016-07-07 18:09:09 UTC) #5
Taylor_Brandstetter
https://codereview.chromium.org/2113523003/diff/1/content/renderer/p2p/filtering_network_manager.cc File content/renderer/p2p/filtering_network_manager.cc (right): https://codereview.chromium.org/2113523003/diff/1/content/renderer/p2p/filtering_network_manager.cc#newcode49 content/renderer/p2p/filtering_network_manager.cc:49: if (media_permission_) { On 2016/07/07 18:09:08, Sergey Ulanov wrote: ...
4 years, 5 months ago (2016-07-07 21:30:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2113523003/20001
4 years, 5 months ago (2016-07-07 21:32:24 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/2113523003/diff/20001/content/renderer/p2p/port_allocator.cc File content/renderer/p2p/port_allocator.cc (right): https://codereview.chromium.org/2113523003/diff/20001/content/renderer/p2p/port_allocator.cc#newcode30 content/renderer/p2p/port_allocator.cc:30: RTC_DCHECK(network_manager); This code is not in webrtc, so this ...
4 years, 5 months ago (2016-07-07 21:38:23 UTC) #10
Taylor_Brandstetter
https://codereview.chromium.org/2113523003/diff/20001/content/renderer/p2p/port_allocator.cc File content/renderer/p2p/port_allocator.cc (right): https://codereview.chromium.org/2113523003/diff/20001/content/renderer/p2p/port_allocator.cc#newcode30 content/renderer/p2p/port_allocator.cc:30: RTC_DCHECK(network_manager); On 2016/07/07 21:38:23, Sergey Ulanov wrote: > This ...
4 years, 5 months ago (2016-07-07 21:49:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2113523003/60001
4 years, 5 months ago (2016-07-07 22:51:04 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gyp_rel on master.tryserver.chromium.mac (JOB_TIMED_OUT, no build URL)
4 years, 5 months ago (2016-07-08 00:52:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2113523003/60001
4 years, 5 months ago (2016-07-08 15:36:23 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-08 15:42:07 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 15:42:09 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 15:45:22 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c6dcde40c5dc3ad78ee039f6a7e9e71437256512
Cr-Commit-Position: refs/heads/master@{#404395}

Powered by Google App Engine
This is Rietveld 408576698