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

Issue 2977953002: Partial Reland of Make the default ctor of rtc::Thread, protected (Closed)

Created:
3 years, 5 months ago by tommi
Modified:
3 years, 5 months ago
Reviewers:
kthelgason, charujain
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reland of Make the default ctor of rtc::Thread, protected This is a partial re-land. The change doesn't make the default Thread ctor protected anymore but it does mark it as deprecated and updates all use of it in WebRTC. Original issue's description: Make the default ctor of rtc::Thread, protected. The goal is to force use of Thread::Create or Thread::CreateWithSocketServer. The default constructor constructs a 'default' socket server, which is usually a 'physical' socket server, but not always. Not every instance of Thread actually needs to have network support, so it's better to have this be explicit instead of unknowingly instantiate one. BUG=none Review-Url: https://codereview.webrtc.org/2977953002 Cr-Commit-Position: refs/heads/master@{#19031} Committed: https://chromium.googlesource.com/external/webrtc/+/e7251599a37051f07d81cb8333823f550eae5b9c

Patch Set 1 #

Patch Set 2 : Update use of default ctor and make the ctor public again (with note) #

Patch Set 3 : Add tests for correct deletion of the thread checker in DestructorAllowedOnDifferentThread #

Patch Set 4 : sigh, misread the error. fixed. #

Patch Set 5 : Fix the same error elsewhere #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -153 lines) Patch
M webrtc/pc/channelmanager_unittest.cc View 1 4 chunks +17 lines, -15 lines 0 comments Download
M webrtc/pc/peerconnectionendtoend_unittest.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M webrtc/pc/peerconnectioninterface_unittest.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M webrtc/pc/proxy_unittest.cc View 1 3 chunks +14 lines, -12 lines 0 comments Download
M webrtc/pc/rtcstats_integrationtest.cc View 1 2 chunks +8 lines, -7 lines 0 comments Download
M webrtc/pc/test/fakeaudiocapturemodule.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/rtc_base/criticalsection_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/rtc_base/logging_unittest.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M webrtc/rtc_base/messagequeue_unittest.cc View 1 8 chunks +21 lines, -21 lines 0 comments Download
M webrtc/rtc_base/nullsocketserver_unittest.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/rtc_base/physicalsocketserver_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/rtc_base/rtccertificategenerator_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/rtc_base/socket_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/rtc_base/thread.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M webrtc/rtc_base/thread.cc View 1 4 chunks +4 lines, -3 lines 0 comments Download
M webrtc/rtc_base/thread_checker_unittest.cc View 1 2 3 4 5 chunks +12 lines, -5 lines 0 comments Download
M webrtc/rtc_base/thread_unittest.cc View 1 2 3 4 15 chunks +47 lines, -47 lines 0 comments Download
M webrtc/rtc_base/timeutils_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc View 1 2 chunks +20 lines, -19 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
tommi
Created Reland of Make the default ctor of rtc::Thread, protected
3 years, 5 months ago (2017-07-14 10:24:03 UTC) #1
tommi
Update use of default ctor and make the ctor public again (with note)
3 years, 5 months ago (2017-07-14 12:38:04 UTC) #3
tommi
Kári - can you take a look again? It's basically the same thing as before ...
3 years, 5 months ago (2017-07-14 12:48:59 UTC) #6
kthelgason
On 2017/07/14 12:48:59, tommi (wëbrtc) wrote: > Kári - can you take a look again? ...
3 years, 5 months ago (2017-07-14 12:50:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2977953002/330001
3 years, 5 months ago (2017-07-14 14:50:51 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_asan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/26380)
3 years, 5 months ago (2017-07-14 15:06:22 UTC) #13
tommi
Add tests for correct deletion of the thread checker in DestructorAllowedOnDifferentThread
3 years, 5 months ago (2017-07-14 20:42:53 UTC) #14
tommi
sigh, misread the error. fixed.
3 years, 5 months ago (2017-07-14 20:58:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2977953002/370001
3 years, 5 months ago (2017-07-14 20:58:41 UTC) #18
tommi
Fix the same error elsewhere
3 years, 5 months ago (2017-07-14 21:05:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2977953002/390001
3 years, 5 months ago (2017-07-14 21:41:41 UTC) #27
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 21:44:54 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:390001) as
https://chromium.googlesource.com/external/webrtc/+/e7251599a37051f07d81cb833...

Powered by Google App Engine
This is Rietveld 408576698