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

Issue 1976683003: Update the type and cost of existing networks if its type is found later by network monitor (Closed)

Created:
4 years, 7 months ago by honghaiz3
Modified:
4 years, 7 months ago
CC:
juberti1
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Update the type and cost of existing networks if the network monitor detects it after the native code does. Also set the network cost for ethernet, wifi, unknown, cellular network type to be 0, 10, 50, 900, so that unknown networks will have lower precedence than known networks with low cost (like Wifi) but higher precedence than known networks with high cost. And third, infer network type based on limited name matching in Android if there is no network monitor or network monitor did not find the type. BUG=webrtc:5890 R=pthatcher@chromium.org, pthatcher@webrtc.org Committed: https://crrev.com/351d77b702d61eef28c4b6273e0c091ce177d1a0 Cr-Commit-Position: refs/heads/master@{#12833}

Patch Set 1 : #

Patch Set 2 : Update stun lifetime when network cost changes and add network type for "v4-rmnet" #

Patch Set 3 : Fix a test failure #

Patch Set 4 : Get network type from name matching only on IOS or Android. #

Total comments: 24

Patch Set 5 : Address comments #

Patch Set 6 : rebase and merge to head #

Patch Set 7 : Minor changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -72 lines) Patch
M webrtc/api/java/jni/androidnetworkmonitor_jni.cc View 1 2 3 4 3 chunks +11 lines, -5 lines 0 comments Download
M webrtc/api/webrtcsdp.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/network.h View 1 2 3 4 4 chunks +29 lines, -1 line 0 comments Download
M webrtc/base/network.cc View 1 2 3 5 chunks +47 lines, -16 lines 0 comments Download
M webrtc/base/network_unittest.cc View 1 2 3 4 5 6 4 chunks +116 lines, -0 lines 0 comments Download
M webrtc/p2p/base/candidate.h View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 5 6 6 chunks +49 lines, -6 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 1 2 3 4 5 6 4 chunks +65 lines, -6 lines 0 comments Download
M webrtc/p2p/base/stunport.h View 1 2 3 4 5 6 4 chunks +17 lines, -1 line 0 comments Download
M webrtc/p2p/base/stunport.cc View 1 2 3 4 7 chunks +14 lines, -23 lines 0 comments Download
M webrtc/p2p/base/stunport_unittest.cc View 1 2 chunks +18 lines, -9 lines 0 comments Download

Messages

Total messages: 50 (34 generated)
honghaiz3
4 years, 7 months ago (2016-05-13 01:13:03 UTC) #6
honghaiz3
4 years, 7 months ago (2016-05-13 01:13:33 UTC) #8
honghaiz3
On 2016/05/13 01:13:33, honghaiz3 wrote: Please hold on this CL. I think there is a ...
4 years, 7 months ago (2016-05-13 05:07:56 UTC) #11
honghaiz3
4 years, 7 months ago (2016-05-14 01:55:01 UTC) #22
honghaiz3
On 2016/05/14 01:55:01, honghaiz3 wrote: Made a few fixes and it is all done. Please ...
4 years, 7 months ago (2016-05-16 18:54:53 UTC) #26
pthatcher1
Good catch changing the ping keep alive lifetime. https://codereview.webrtc.org/1976683003/diff/300001/webrtc/api/java/jni/androidnetworkmonitor_jni.cc File webrtc/api/java/jni/androidnetworkmonitor_jni.cc (right): https://codereview.webrtc.org/1976683003/diff/300001/webrtc/api/java/jni/androidnetworkmonitor_jni.cc#newcode273 webrtc/api/java/jni/androidnetworkmonitor_jni.cc:273: // ...
4 years, 7 months ago (2016-05-17 21:23:12 UTC) #27
honghaiz3
PTAL. https://codereview.webrtc.org/1976683003/diff/300001/webrtc/api/java/jni/androidnetworkmonitor_jni.cc File webrtc/api/java/jni/androidnetworkmonitor_jni.cc (right): https://codereview.webrtc.org/1976683003/diff/300001/webrtc/api/java/jni/androidnetworkmonitor_jni.cc#newcode273 webrtc/api/java/jni/androidnetworkmonitor_jni.cc:273: // Fire the NetworksChangedSignal to update the list ...
4 years, 7 months ago (2016-05-18 07:41:47 UTC) #30
honghaiz3
Ping. PTAL when you get time.
4 years, 7 months ago (2016-05-20 14:07:18 UTC) #31
pthatcher2
lgtm
4 years, 7 months ago (2016-05-20 19:49:56 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976683003/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976683003/360001
4 years, 7 months ago (2016-05-20 20:00:04 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976683003/410001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976683003/410001
4 years, 7 months ago (2016-05-20 20:45:32 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/5717)
4 years, 7 months ago (2016-05-20 21:05:52 UTC) #43
honghaiz3
On 2016/05/20 21:05:52, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 7 months ago (2016-05-20 21:16:27 UTC) #44
pthatcher1
lgtm Sorry about that.
4 years, 7 months ago (2016-05-20 21:44:27 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976683003/410001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976683003/410001
4 years, 7 months ago (2016-05-20 21:51:35 UTC) #47
honghaiz3
4 years, 7 months ago (2016-05-20 22:08:44 UTC) #49
Message was sent while issue was closed.
Committed patchset #7 (id:410001) manually as
351d77b702d61eef28c4b6273e0c091ce177d1a0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698