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

Issue 1572483002: Implement OnGetNetworks for net.mojom (Closed)

Created:
4 years, 11 months ago by Kevin Cernekee
Modified:
4 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, abhishekbh, ben+mojo_chromium.org, blundell+watchlist_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, darin (slow to review), droger+watchlist_chromium.org, qsr+mojo_chromium.org, sdefresne+watchlist_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement OnGetNetworks for net.mojom This allows ARC to request the list of visible wifi networks. BUG=b:26369403 TEST=manual Signed-off-by: Abhishek Bhardwaj <abhishekbh@chromium.org>; Signed-off-by: Kevin Cernekee <cernekee@chromium.org>; Committed: https://crrev.com/6ad6767dc0e6a62244abf243305bea594f94f882 Cr-Commit-Position: refs/heads/master@{#371421}

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 38

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Tweak gypi deps to try to fix trybot failure #

Patch Set 10 : fix onc dep, take 2 #

Total comments: 8

Patch Set 11 : fix more review comments #

Total comments: 11

Patch Set 12 : rebase + incorporate code review feedback #

Total comments: 4

Patch Set 13 : add missing OnNetInstanceReady and CloseNetChannel calls #

Total comments: 7

Patch Set 14 : rebase + add checks on GetInteger / GetString #

Patch Set 15 : remove unnecessary #include #

Total comments: 7

Patch Set 16 : add more DCHECKs #

Patch Set 17 : remove weak_factory_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -0 lines) Patch
M components/arc.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +10 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +27 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M components/arc/common/arc_bridge.mojom View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
A components/arc/common/net.mojom View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
A + components/arc/net/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A 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 1 chunk +50 lines, -0 lines 0 comments Download
A 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 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (10 generated)
cernekee
4 years, 11 months ago (2016-01-12 02:07:34 UTC) #2
Luis Héctor Chávez
https://codereview.chromium.org/1572483002/diff/20001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1572483002/diff/20001/components/arc/arc_bridge_service.h#newcode96 components/arc/arc_bridge_service.h:96: // Called whenever the ARC net interface state changes. ...
4 years, 11 months ago (2016-01-12 17:32:32 UTC) #3
cernekee
https://codereview.chromium.org/1572483002/diff/20001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1572483002/diff/20001/components/arc/arc_bridge_service.h#newcode96 components/arc/arc_bridge_service.h:96: // Called whenever the ARC net interface state changes. ...
4 years, 11 months ago (2016-01-12 20:14:47 UTC) #4
Luis Héctor Chávez
https://codereview.chromium.org/1572483002/diff/20001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1572483002/diff/20001/components/arc/arc_bridge_service.h#newcode96 components/arc/arc_bridge_service.h:96: // Called whenever the ARC net interface state changes. ...
4 years, 11 months ago (2016-01-12 20:42:28 UTC) #5
stevenjb
https://codereview.chromium.org/1572483002/diff/40001/components/arc/common/net.mojom File components/arc/common/net.mojom (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/common/net.mojom#newcode12 components/arc/common/net.mojom:12: struct WifiConfiguration { We should document these properties. Do ...
4 years, 11 months ago (2016-01-12 22:14:04 UTC) #6
abhishekbh
lgtm https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_service_manager.h#newcode47 components/arc/arc_service_manager.h:47: scoped_ptr<arc::NetHost> arc_net_host_; should this be ArcNetHostImpl ? https://codereview.chromium.org/1572483002/diff/40001/components/arc/net/arc_net_host_impl.h ...
4 years, 11 months ago (2016-01-12 22:42:27 UTC) #8
stevenjb
https://codereview.chromium.org/1572483002/diff/40001/components/arc/net/arc_net_host_impl.h File components/arc/net/arc_net_host_impl.h (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/net/arc_net_host_impl.h#newcode31 components/arc/net/arc_net_host_impl.h:31: void GetNetworksFromChrome(bool configured_only, On 2016/01/12 22:42:26, abhishekbh wrote: > ...
4 years, 11 months ago (2016-01-12 22:50:47 UTC) #9
Kevin Cernekee
https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_service_manager.h#newcode47 components/arc/arc_service_manager.h:47: scoped_ptr<arc::NetHost> arc_net_host_; On 2016/01/12 22:42:26, abhishekbh wrote: > should ...
4 years, 11 months ago (2016-01-12 23:53:27 UTC) #10
Luis Héctor Chávez
https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_service_manager.h#newcode47 components/arc/arc_service_manager.h:47: scoped_ptr<arc::NetHost> arc_net_host_; On 2016/01/12 23:53:27, Kevin Cernekee wrote: > ...
4 years, 11 months ago (2016-01-12 23:57:21 UTC) #11
hidehiko
Quick walk through. Probably, you're forgetting to upload the latest PS? Also, could you run ...
4 years, 11 months ago (2016-01-13 05:58:56 UTC) #12
Luis Héctor Chávez
Can you also run `git cl format` and `git cl lint` while we're at it? ...
4 years, 11 months ago (2016-01-13 16:43:10 UTC) #13
cernekee
https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_bridge_service.h#newcode97 components/arc/arc_bridge_service.h:97: virtual void OnNetInstanceReady() {} On 2016/01/13 05:58:56, hidehiko wrote: ...
4 years, 11 months ago (2016-01-14 03:08:59 UTC) #14
hidehiko
https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_bridge_service.h#newcode97 components/arc/arc_bridge_service.h:97: virtual void OnNetInstanceReady() {} On 2016/01/14 03:08:58, cernekee wrote: ...
4 years, 11 months ago (2016-01-14 04:06:32 UTC) #15
stevenjb
https://codereview.chromium.org/1572483002/diff/40001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/net/arc_net_host_impl.cc#newcode80 components/arc/net/arc_net_host_impl.cc:80: DCHECK(network_dict); On 2016/01/14 03:08:58, cernekee wrote: > On 2016/01/13 ...
4 years, 11 months ago (2016-01-14 18:18:54 UTC) #16
cernekee
https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1572483002/diff/40001/components/arc/arc_bridge_service.h#newcode97 components/arc/arc_bridge_service.h:97: virtual void OnNetInstanceReady() {} On 2016/01/14 04:06:32, hidehiko wrote: ...
4 years, 11 months ago (2016-01-14 21:22:24 UTC) #17
hidehiko
Again, please run trybots. https://codereview.chromium.org/1572483002/diff/80001/components/arc/arc_bridge_service.cc File components/arc/arc_bridge_service.cc (right): https://codereview.chromium.org/1572483002/diff/80001/components/arc/arc_bridge_service.cc#newcode166 components/arc/arc_bridge_service.cc:166: FOR_EACH_OBSERVER(Observer, observer_list(), OnNetInstanceReady()); This needs ...
4 years, 11 months ago (2016-01-15 08:38:40 UTC) #18
cernekee
https://codereview.chromium.org/1572483002/diff/80001/components/arc/arc_bridge_service.cc File components/arc/arc_bridge_service.cc (right): https://codereview.chromium.org/1572483002/diff/80001/components/arc/arc_bridge_service.cc#newcode166 components/arc/arc_bridge_service.cc:166: FOR_EACH_OBSERVER(Observer, observer_list(), OnNetInstanceReady()); On 2016/01/15 08:38:39, hidehiko wrote: > ...
4 years, 11 months ago (2016-01-15 22:45:36 UTC) #19
Kevin Cernekee
4 years, 11 months ago (2016-01-19 17:00:16 UTC) #20
Luis Héctor Chávez
https://codereview.chromium.org/1572483002/diff/180001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1572483002/diff/180001/components/arc/arc_service_manager.h#newcode57 components/arc/arc_service_manager.h:57: scoped_ptr<arc::NetHost> arc_net_host_; This is going away soon, but ArcNetHostImpl? ...
4 years, 11 months ago (2016-01-19 20:51:59 UTC) #21
cernekee
https://codereview.chromium.org/1572483002/diff/180001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1572483002/diff/180001/components/arc/arc_service_manager.h#newcode57 components/arc/arc_service_manager.h:57: scoped_ptr<arc::NetHost> arc_net_host_; On 2016/01/19 20:51:58, Luis Héctor Chávez wrote: ...
4 years, 11 months ago (2016-01-20 01:37:17 UTC) #22
stevenjb
https://codereview.chromium.org/1572483002/diff/200001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/1572483002/diff/200001/components/arc/BUILD.gn#newcode27 components/arc/BUILD.gn:27: "net/arc_net_host_impl.cc", This has chromeos specific code in it, so ...
4 years, 11 months ago (2016-01-20 01:43:42 UTC) #23
cernekee
https://codereview.chromium.org/1572483002/diff/200001/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/1572483002/diff/200001/components/arc/BUILD.gn#newcode27 components/arc/BUILD.gn:27: "net/arc_net_host_impl.cc", On 2016/01/20 01:43:42, stevenjb wrote: > This has ...
4 years, 11 months ago (2016-01-20 01:48:38 UTC) #24
stevenjb
Sorry, old habits. I forgot that this is arc specific, which presumably is always going ...
4 years, 11 months ago (2016-01-20 01:51:11 UTC) #25
stevenjb
lgtm
4 years, 11 months ago (2016-01-20 01:54:52 UTC) #26
Luis Héctor Chávez
please rebase and make sure that the MinVersion in the .mojom file is up to ...
4 years, 11 months ago (2016-01-21 23:40:15 UTC) #28
dcheng
https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc#newcode59 components/arc/net/arc_net_host_impl.cc:59: chromeos::network_util::TranslateNetworkListToONC( Can we just call GetNetworkListByType() directly? It seems ...
4 years, 11 months ago (2016-01-22 07:17:43 UTC) #29
lhc(google)
https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.h File components/arc/net/arc_net_host_impl.h (right): https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.h#newcode41 components/arc/net/arc_net_host_impl.h:41: ArcBridgeService* arc_bridge_service_; On 2016/01/22 07:17:43, dcheng wrote: > Nit: ...
4 years, 11 months ago (2016-01-22 15:56:19 UTC) #31
cernekee
https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc#newcode15 components/arc/net/arc_net_host_impl.cc:15: #include "chromeos/network/onc/onc_utils.h" On 2016/01/20 01:43:42, stevenjb wrote: > This ...
4 years, 11 months ago (2016-01-22 19:58:41 UTC) #32
lhc(google)
https://codereview.chromium.org/1572483002/diff/220001/components/arc/arc_bridge_service.cc File components/arc/arc_bridge_service.cc (right): https://codereview.chromium.org/1572483002/diff/220001/components/arc/arc_bridge_service.cc#newcode66 components/arc/arc_bridge_service.cc:66: if (notifications_instance()) You need to add: if (net_instance()) observer->OnNetInstanceReady(); ...
4 years, 11 months ago (2016-01-22 20:47:12 UTC) #33
cernekee
https://codereview.chromium.org/1572483002/diff/220001/components/arc/arc_bridge_service.cc File components/arc/arc_bridge_service.cc (right): https://codereview.chromium.org/1572483002/diff/220001/components/arc/arc_bridge_service.cc#newcode66 components/arc/arc_bridge_service.cc:66: if (notifications_instance()) On 2016/01/22 20:47:12, lhc(google) wrote: > You ...
4 years, 11 months ago (2016-01-22 20:54:28 UTC) #34
stevenjb
https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc#newcode59 components/arc/net/arc_net_host_impl.cc:59: chromeos::network_util::TranslateNetworkListToONC( On 2016/01/22 19:58:41, cernekee wrote: > Not sure ...
4 years, 11 months ago (2016-01-22 21:08:29 UTC) #35
dcheng
https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/200001/components/arc/net/arc_net_host_impl.cc#newcode59 components/arc/net/arc_net_host_impl.cc:59: chromeos::network_util::TranslateNetworkListToONC( On 2016/01/22 at 21:08:28, stevenjb wrote: > On ...
4 years, 11 months ago (2016-01-23 05:12:41 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572483002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572483002/240001
4 years, 11 months ago (2016-01-24 23:20:16 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/138463)
4 years, 11 months ago (2016-01-24 23:29:50 UTC) #41
Kevin Cernekee
Hi guys, looks like we still need OWNERS approval for components/arc/common ?
4 years, 11 months ago (2016-01-24 23:35:27 UTC) #42
hidehiko
FYI. https://codereview.chromium.org/1572483002/diff/240001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1572483002/diff/240001/components/arc/arc_service_manager.h#newcode13 components/arc/arc_service_manager.h:13: #include "components/arc/common/net.mojom.h" nit: please remove this line.
4 years, 11 months ago (2016-01-25 16:43:08 UTC) #43
dcheng
On 2016/01/24 at 23:35:27, cernekee wrote: > Hi guys, looks like we still need OWNERS ...
4 years, 11 months ago (2016-01-25 18:44:47 UTC) #44
stevenjb
Added some comments as to how the values should be checked. https://codereview.chromium.org/1572483002/diff/240001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): ...
4 years, 11 months ago (2016-01-25 18:58:22 UTC) #45
cernekee
https://codereview.chromium.org/1572483002/diff/240001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/240001/components/arc/net/arc_net_host_impl.cc#newcode79 components/arc/net/arc_net_host_impl.cc:79: wifi_dict->GetInteger(onc::wifi::kSignalStrength, &wc->signal_strength); On 2016/01/25 18:58:22, stevenjb wrote: > Is ...
4 years, 11 months ago (2016-01-25 20:49:36 UTC) #46
dcheng
https://codereview.chromium.org/1572483002/diff/280001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/280001/components/arc/net/arc_net_host_impl.cc#newcode69 components/arc/net/arc_net_host_impl.cc:69: network_dict->GetString(onc::network_config::kName, &tmp); How come there's no DCHECK here? https://codereview.chromium.org/1572483002/diff/280001/components/arc/net/arc_net_host_impl.cc#newcode83 ...
4 years, 11 months ago (2016-01-25 23:35:32 UTC) #47
cernekee
https://codereview.chromium.org/1572483002/diff/280001/components/arc/net/arc_net_host_impl.cc File components/arc/net/arc_net_host_impl.cc (right): https://codereview.chromium.org/1572483002/diff/280001/components/arc/net/arc_net_host_impl.cc#newcode69 components/arc/net/arc_net_host_impl.cc:69: network_dict->GetString(onc::network_config::kName, &tmp); On 2016/01/25 23:35:32, dcheng wrote: > How ...
4 years, 11 months ago (2016-01-25 23:49:53 UTC) #48
stevenjb
lgtm++
4 years, 11 months ago (2016-01-25 23:58:23 UTC) #49
dcheng
mojom changes lgtm, but please remove the weak_factory_ from ArcNetHostImpl. Just add it in a ...
4 years, 11 months ago (2016-01-26 00:22:16 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1572483002/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1572483002/310001
4 years, 11 months ago (2016-01-26 00:30:42 UTC) #53
commit-bot: I haz the power
Committed patchset #17 (id:310001)
4 years, 11 months ago (2016-01-26 02:08:47 UTC) #54
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 02:10:03 UTC) #56
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/6ad6767dc0e6a62244abf243305bea594f94f882
Cr-Commit-Position: refs/heads/master@{#371421}

Powered by Google App Engine
This is Rietveld 408576698