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

Issue 1925083003: Notify ARC of default network changes (Closed)

Created:
4 years, 7 months ago by Kevin Cernekee
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@wifi-change
Project:
chromium
Visibility:
Public.

Description

Notify ARC of default network changes Track the default logical service (i.e. VPN or physical interface) and notify ARC when it changes. Allow ARC to query the default service at startup time. This reports IP information, MAC address, wifi parameters, etc. BUG=b/26495433 Committed: https://crrev.com/69d6c93bea89bafef588b470c87f240577805f5c Cr-Commit-Position: refs/heads/master@{#394836}

Patch Set 1 #

Patch Set 2 : add version check, fix API call, add missing assignment #

Patch Set 3 : formatting/lint fixes #

Patch Set 4 : rebase on ToT #

Patch Set 5 : fix merge conflicts #

Patch Set 6 : upload latest changes #

Patch Set 7 : Make a bunch of fields nullable #

Patch Set 8 : fix a couple of trybot failures #

Patch Set 9 : fix more cargo-cult invocations of std::move #

Patch Set 10 : cache default_network_ changes even if ARC isn't connected yet #

Total comments: 4

Patch Set 11 : incorporate code review feedback #

Total comments: 33

Patch Set 12 : incorporate code review feedback #

Total comments: 10

Patch Set 13 : incorporate code review feedback #

Patch Set 14 : fix linter error #

Total comments: 7

Patch Set 15 : move helpers to anonymous namespace #

Total comments: 16

Patch Set 16 : rename a bunch of temporary variables #

Total comments: 15

Patch Set 17 : incorporate code review feedback #

Total comments: 2

Patch Set 18 : forward-declare base::DictionaryValue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -60 lines) Patch
M components/arc/common/net.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +63 lines, -0 lines 0 comments Download
M components/arc/net/arc_net_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +12 lines, -0 lines 0 comments Download
M components/arc/net/arc_net_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +302 lines, -60 lines 0 comments Download

Messages

Total messages: 37 (7 generated)
Kevin Cernekee
4 years, 7 months ago (2016-05-13 15:39:28 UTC) #2
Luis Héctor Chávez
https://codereview.chromium.org/1925083003/diff/180001/components/arc/common/net.mojom File components/arc/common/net.mojom (right): https://codereview.chromium.org/1925083003/diff/180001/components/arc/common/net.mojom#newcode66 components/arc/common/net.mojom:66: struct WiFi { WifiInfo? WifiConfiguration? https://codereview.chromium.org/1925083003/diff/180001/components/arc/common/net.mojom#newcode90 components/arc/common/net.mojom:90: WiFi? wifi; ...
4 years, 7 months ago (2016-05-14 20:07:30 UTC) #4
Kevin Cernekee
It is intended to mirror the ONC struct: https://chromium.googlesource.com/chromium/chromium/+/0142427081581becff601f489e9b5cb9f53c5a5d/components/onc/docs/onc_spec.html
4 years, 7 months ago (2016-05-14 20:15:59 UTC) #5
Luis Héctor Chávez
On 2016/05/14 20:15:59, Kevin Cernekee wrote: > It is intended to mirror the ONC struct: ...
4 years, 7 months ago (2016-05-14 20:18:44 UTC) #6
Kevin Cernekee
Done - added the comment referencing ONC. https://codereview.chromium.org/1925083003/diff/180001/components/arc/common/net.mojom File components/arc/common/net.mojom (right): https://codereview.chromium.org/1925083003/diff/180001/components/arc/common/net.mojom#newcode66 components/arc/common/net.mojom:66: struct WiFi ...
4 years, 7 months ago (2016-05-15 21:02:34 UTC) #7
Kevin Cernekee
4 years, 7 months ago (2016-05-15 21:02:48 UTC) #9
abhishekbh
On 2016/05/15 21:02:48, Kevin Cernekee wrote: lgtm
4 years, 7 months ago (2016-05-15 21:26:41 UTC) #10
stevenjb
https://codereview.chromium.org/1925083003/diff/200001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/200001/components/arc/net/arc_net_host_impl.cc#newcode378 components/arc/net/arc_net_host_impl.cc:378: NOTREACHED(); Frequency is not a required ONC property, we ...
4 years, 7 months ago (2016-05-16 19:29:36 UTC) #11
Kevin Cernekee
https://codereview.chromium.org/1925083003/diff/200001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/200001/components/arc/net/arc_net_host_impl.cc#newcode378 components/arc/net/arc_net_host_impl.cc:378: NOTREACHED(); On 2016/05/16 19:29:35, stevenjb wrote: > Frequency is ...
4 years, 7 months ago (2016-05-17 01:56:27 UTC) #12
abhishekbh
lgtm
4 years, 7 months ago (2016-05-17 17:23:18 UTC) #13
stevenjb
https://codereview.chromium.org/1925083003/diff/200001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/200001/components/arc/net/arc_net_host_impl.cc#newcode604 components/arc/net/arc_net_host_impl.cc:604: if (default_network_.empty()) { On 2016/05/17 01:56:26, Kevin Cernekee wrote: ...
4 years, 7 months ago (2016-05-17 18:02:41 UTC) #14
Kevin Cernekee
https://codereview.chromium.org/1925083003/diff/220001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/220001/components/arc/net/arc_net_host_impl.cc#newcode67 components/arc/net/arc_net_host_impl.cc:67: } On 2016/05/17 18:02:41, stevenjb wrote: > This can ...
4 years, 7 months ago (2016-05-17 19:38:58 UTC) #16
dcheng
https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc#newcode384 components/arc/net/arc_net_host_impl.cc:384: const base::DictionaryValue* dict) { I've expressed this in past ...
4 years, 7 months ago (2016-05-18 05:32:45 UTC) #17
stevenjb
https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc#newcode384 components/arc/net/arc_net_host_impl.cc:384: const base::DictionaryValue* dict) { On 2016/05/18 05:32:45, dcheng wrote: ...
4 years, 7 months ago (2016-05-18 15:35:48 UTC) #18
dcheng
On 2016/05/18 at 15:35:48, stevenjb wrote: > https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc > File components/arc/net/arc_net_host_impl.cc (right): > > https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc#newcode384 ...
4 years, 7 months ago (2016-05-18 17:32:41 UTC) #19
stevenjb
On 2016/05/18 17:32:41, dcheng wrote: > On 2016/05/18 at 15:35:48, stevenjb wrote: > > > ...
4 years, 7 months ago (2016-05-18 17:46:16 UTC) #20
Kevin Cernekee
Hi guys, can we go ahead and push this CL as-is? It is blocking a ...
4 years, 7 months ago (2016-05-18 20:51:21 UTC) #21
stevenjb
Sorry, forgot to publish my last round of feedback. Just nits, so lgtm. https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc File ...
4 years, 7 months ago (2016-05-18 21:00:18 UTC) #22
Kevin Cernekee
https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/260001/components/arc/net/arc_net_host_impl.cc#newcode384 components/arc/net/arc_net_host_impl.cc:384: const base::DictionaryValue* dict) { On 2016/05/18 15:35:48, stevenjb wrote: ...
4 years, 7 months ago (2016-05-18 21:36:58 UTC) #23
Luis Héctor Chávez
lgtm with nits https://codereview.chromium.org/1925083003/diff/280001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/280001/components/arc/net/arc_net_host_impl.cc#newcode55 components/arc/net/arc_net_host_impl.cc:55: std::string tmp; nit: value? https://codereview.chromium.org/1925083003/diff/280001/components/arc/net/arc_net_host_impl.cc#newcode64 components/arc/net/arc_net_host_impl.cc:64: ...
4 years, 7 months ago (2016-05-18 21:41:57 UTC) #24
Kevin Cernekee
https://codereview.chromium.org/1925083003/diff/280001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/280001/components/arc/net/arc_net_host_impl.cc#newcode55 components/arc/net/arc_net_host_impl.cc:55: std::string tmp; On 2016/05/18 21:41:57, Luis Héctor Chávez (slow ...
4 years, 7 months ago (2016-05-18 21:55:19 UTC) #25
dcheng
The ONC translation is opaque and unmaintainable. It's impossible for me to verify correctness there, ...
4 years, 7 months ago (2016-05-18 22:31:58 UTC) #26
stevenjb
https://codereview.chromium.org/1925083003/diff/300001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/300001/components/arc/net/arc_net_host_impl.cc#newcode358 components/arc/net/arc_net_host_impl.cc:358: } Move these two to anon namespace. https://codereview.chromium.org/1925083003/diff/300001/components/arc/net/arc_net_host_impl.cc#newcode418 components/arc/net/arc_net_host_impl.cc:418: ...
4 years, 7 months ago (2016-05-18 23:01:17 UTC) #27
Kevin Cernekee
https://codereview.chromium.org/1925083003/diff/300001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1925083003/diff/300001/components/arc/net/arc_net_host_impl.cc#newcode358 components/arc/net/arc_net_host_impl.cc:358: } On 2016/05/18 23:01:17, stevenjb wrote: > Move these ...
4 years, 7 months ago (2016-05-18 23:24:53 UTC) #28
stevenjb
Thanks. lgtm w/nit https://codereview.chromium.org/1925083003/diff/320001/components/arc/net/arc_net_host_impl.h File components/arc/net/arc_net_host_impl.h (right): https://codereview.chromium.org/1925083003/diff/320001/components/arc/net/arc_net_host_impl.h#newcode16 components/arc/net/arc_net_host_impl.h:16: #include "base/values.h" Instead forward declare DictionaryValue
4 years, 7 months ago (2016-05-18 23:28:06 UTC) #29
dcheng
mojom lgtm
4 years, 7 months ago (2016-05-18 23:36:55 UTC) #30
Kevin Cernekee
https://codereview.chromium.org/1925083003/diff/320001/components/arc/net/arc_net_host_impl.h File components/arc/net/arc_net_host_impl.h (right): https://codereview.chromium.org/1925083003/diff/320001/components/arc/net/arc_net_host_impl.h#newcode16 components/arc/net/arc_net_host_impl.h:16: #include "base/values.h" On 2016/05/18 23:28:06, stevenjb wrote: > Instead ...
4 years, 7 months ago (2016-05-18 23:39:31 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925083003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925083003/340001
4 years, 7 months ago (2016-05-19 19:33:07 UTC) #34
commit-bot: I haz the power
Committed patchset #18 (id:340001)
4 years, 7 months ago (2016-05-19 19:39:04 UTC) #35
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 19:40:28 UTC) #37
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/69d6c93bea89bafef588b470c87f240577805f5c
Cr-Commit-Position: refs/heads/master@{#394836}

Powered by Google App Engine
This is Rietveld 408576698