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

Issue 1430433004: Replace rtc::cricket::Settable with rtc::Maybe (Closed)

Created:
5 years, 1 month ago by kwiberg-webrtc
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, hlundin-webrtc, aluebs-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace rtc::cricket::Settable with rtc::Maybe The former is very similar to the latter, but less general (mostly in naming). This CL, which is the first to use Maybe at scale, also removes the implicit conversion from T to Maybe<T>, since it was agreed that the increased verbosity increased legibility. Committed: https://crrev.com/102c6a61bc0b42dc0956d013530fc0213b7e881b Cr-Commit-Position: refs/heads/master@{#10461}

Patch Set 1 : #

Total comments: 11

Patch Set 2 : review nits #

Patch Set 3 : No implicit conversion from T to Maybe<T> #

Patch Set 4 : iOS and Android fixes #

Total comments: 2

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -543 lines) Patch
M talk/app/webrtc/localaudiosource.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M talk/app/webrtc/localaudiosource_unittest.cc View 5 chunks +12 lines, -28 lines 0 comments Download
M talk/app/webrtc/videosource.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M talk/app/webrtc/videosource_unittest.cc View 7 chunks +8 lines, -20 lines 0 comments Download
M talk/app/webrtc/webrtcsession.cc View 1 2 6 chunks +15 lines, -16 lines 0 comments Download
M talk/app/webrtc/webrtcsession_unittest.cc View 1 2 5 chunks +8 lines, -14 lines 0 comments Download
M talk/media/base/mediachannel.h View 1 6 chunks +120 lines, -164 lines 0 comments Download
M talk/media/base/videoengine_unittest.h View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2.h View 3 chunks +4 lines, -4 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2.cc View 1 2 3 4 18 chunks +40 lines, -48 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2_unittest.cc View 1 2 3 4 8 chunks +11 lines, -10 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.h View 1 chunk +3 lines, -3 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.cc View 1 2 3 4 11 chunks +121 lines, -127 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine_unittest.cc View 1 2 19 chunks +50 lines, -48 lines 0 comments Download
M talk/session/media/channel.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/base/maybe.h View 1 2 3 chunks +4 lines, -15 lines 0 comments Download
M webrtc/base/maybe_unittest.cc View 1 2 10 chunks +29 lines, -25 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/rent_a_codec.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/beamformer/array_util.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
kwiberg-webrtc
Fredrik, please take a look. Does it look like you imagined? (I know I'll have ...
5 years, 1 month ago (2015-10-28 12:26:45 UTC) #3
the sun
Generally looks really nice. A good improvement in readability. My biggest concern being what I ...
5 years, 1 month ago (2015-10-28 13:18:01 UTC) #4
kwiberg-webrtc
https://codereview.webrtc.org/1430433004/diff/20001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1430433004/diff/20001/talk/app/webrtc/webrtcsession.cc#newcode689 talk/app/webrtc/webrtcsession.cc:689: video_options_.unsignalled_recv_stream_limit = On 2015/10/28 13:18:01, the sun wrote: > ...
5 years, 1 month ago (2015-10-28 14:34:38 UTC) #5
the sun
https://codereview.webrtc.org/1430433004/diff/20001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1430433004/diff/20001/talk/app/webrtc/webrtcsession.cc#newcode689 talk/app/webrtc/webrtcsession.cc:689: video_options_.unsignalled_recv_stream_limit = On 2015/10/28 14:34:38, kwiberg-webrtc wrote: > On ...
5 years, 1 month ago (2015-10-28 14:45:48 UTC) #6
the sun
Nice! LGTM https://codereview.webrtc.org/1430433004/diff/80001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1430433004/diff/80001/talk/app/webrtc/webrtcsession.cc#newcode689 talk/app/webrtc/webrtcsession.cc:689: video_options_.unsignalled_recv_stream_limit = rtc::Maybe<int>( to-o-tal nit: it would ...
5 years, 1 month ago (2015-10-29 12:27:43 UTC) #7
kwiberg-webrtc
https://codereview.webrtc.org/1430433004/diff/80001/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (right): https://codereview.webrtc.org/1430433004/diff/80001/talk/app/webrtc/webrtcsession.cc#newcode689 talk/app/webrtc/webrtcsession.cc:689: video_options_.unsignalled_recv_stream_limit = rtc::Maybe<int>( On 2015/10/29 12:27:43, the sun wrote: ...
5 years, 1 month ago (2015-10-29 12:35:01 UTC) #8
kwiberg-webrtc
Now that solenberg@ likes it, time for some OWNERs to review. Andrew: webrtc/base/ Tommi: talk/ ...
5 years, 1 month ago (2015-10-29 12:42:18 UTC) #11
tommi
lgtm
5 years, 1 month ago (2015-10-29 16:24:19 UTC) #13
Andrew MacDonald
+aluebs FYI I'm a little sad about the loss of implicit conversions. I think there's ...
5 years, 1 month ago (2015-10-29 19:11:15 UTC) #14
tommi
On 2015/10/29 19:11:15, Andrew MacDonald wrote: > +aluebs FYI > > I'm a little sad ...
5 years, 1 month ago (2015-10-29 19:21:26 UTC) #15
kwiberg-webrtc
On 2015/10/29 19:11:15, Andrew MacDonald wrote: > I'm a little sad about the loss of ...
5 years, 1 month ago (2015-10-29 19:49:10 UTC) #16
the sun
On 2015/10/29 19:21:26, tommi (webrtc) wrote: > On 2015/10/29 19:11:15, Andrew MacDonald wrote: > > ...
5 years, 1 month ago (2015-10-29 19:51:25 UTC) #17
kwiberg-webrtc
On 2015/10/29 19:21:26, tommi (webrtc) wrote: > On 2015/10/29 19:11:15, Andrew MacDonald wrote: > > ...
5 years, 1 month ago (2015-10-29 19:53:25 UTC) #18
tommi
On 2015/10/29 19:53:25, kwiberg-webrtc wrote: > On 2015/10/29 19:21:26, tommi (webrtc) wrote: > > On ...
5 years, 1 month ago (2015-10-29 22:01:23 UTC) #19
Andrew MacDonald
Still lgtm. On 2015/10/29 19:49:10, kwiberg-webrtc wrote: > On 2015/10/29 19:11:15, Andrew MacDonald wrote: > ...
5 years, 1 month ago (2015-10-29 22:04:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430433004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430433004/100001
5 years, 1 month ago (2015-10-30 08:56:45 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 1 month ago (2015-10-30 09:47:44 UTC) #24
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 09:47:54 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/102c6a61bc0b42dc0956d013530fc0213b7e881b
Cr-Commit-Position: refs/heads/master@{#10461}

Powered by Google App Engine
This is Rietveld 408576698