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

Issue 298023005: Infer network connection type from network interface type. (Closed)

Created:
6 years, 6 months ago by pauljensen
Modified:
6 years, 6 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, jkarlin
Visibility:
Public.

Description

Infer Windows network connection type from interface type. If all active network interfaces have the same network connection type it's safe to assume this is the type of the network connection. Make NetworkChangeNotifier return this network connection type on Windows. BUG=160537 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278881

Patch Set 1 : #

Patch Set 2 : Add tests #

Total comments: 3

Patch Set 3 : Add tests #

Patch Set 4 : Fix win build (no std::vector.reverse) #

Total comments: 10

Patch Set 5 : Address mmenke's comments #

Patch Set 6 : Avoid std::vector operator[] element creation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -2 lines) Patch
M net/base/network_change_notifier.h View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download
A net/base/network_change_notifier_unittest.cc View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
M net/base/network_change_notifier_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/net.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
pauljensen
6 years, 6 months ago (2014-06-12 13:08:09 UTC) #1
pauljensen
Matt, PTAL.
6 years, 6 months ago (2014-06-19 03:17:21 UTC) #2
mmenke
On 2014/06/19 03:17:21, pauljensen wrote: > Matt, PTAL. Maybe make ConnectionTypeFromInterfaces take in an NetworkInterfaceList, ...
6 years, 6 months ago (2014-06-19 14:53:10 UTC) #3
pauljensen
Matt, PTAL. https://codereview.chromium.org/298023005/diff/60001/net/base/network_change_notifier.h File net/base/network_change_notifier.h (right): https://codereview.chromium.org/298023005/diff/60001/net/base/network_change_notifier.h#newcode14 net/base/network_change_notifier.h:14: #include "net/base/net_export.h" Sadly I cannot include net_util.h ...
6 years, 6 months ago (2014-06-20 05:58:53 UTC) #4
mmenke
LGTM, just nits. https://codereview.chromium.org/298023005/diff/60001/net/base/network_change_notifier.h File net/base/network_change_notifier.h (right): https://codereview.chromium.org/298023005/diff/60001/net/base/network_change_notifier.h#newcode24 net/base/network_change_notifier.h:24: typedef std::vector<NetworkInterface> NetworkInterfaceList; On 2014/06/20 05:58:53, ...
6 years, 6 months ago (2014-06-20 15:18:58 UTC) #5
pauljensen
https://codereview.chromium.org/298023005/diff/90001/net/base/network_change_notifier_unittest.cc File net/base/network_change_notifier_unittest.cc (right): https://codereview.chromium.org/298023005/diff/90001/net/base/network_change_notifier_unittest.cc#newcode4 net/base/network_change_notifier_unittest.cc:4: On 2014/06/20 15:18:57, mmenke wrote: > nit: #include "network_change_notifier.h", ...
6 years, 6 months ago (2014-06-20 19:22:32 UTC) #6
pauljensen
The CQ bit was checked by pauljensen@chromium.org
6 years, 6 months ago (2014-06-20 19:25:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/298023005/130001
6 years, 6 months ago (2014-06-20 19:27:59 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 23:50:42 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-21 00:46:31 UTC) #10
Message was sent while issue was closed.
Change committed as 278881

Powered by Google App Engine
This is Rietveld 408576698