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

Issue 2513673004: Reland: chromeos: Convert ash VPNDelegate interface to mojo (Closed)

Created:
4 years, 1 month ago by James Cook
Modified:
4 years ago
Reviewers:
Tom Sepez, stevenjb, sky
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review), stevenjb+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: chromeos: Convert ash VPNDelegate interface to mojo Relanding because previous version crrev.com/434004 was missing an entry in chrome_content_browser_manifest_overlay.json Under mustash the ash shell runs in a different process than chrome browser. Create mojo interfaces to allow chrome to tell ash about extension-based third-party VPN providers and to allow ash to ask chrome to open VPN config UI. This CL maintains the existing ash::VPNProvider struct rather than replacing it with ash::mojom::ThirdPartyVpnProvider because the two express different concepts (the former includes the built-in OpenVPN/L2TP provider and is used in several places in UI code). We can collapse them later. BUG=651148 TEST=added to ash_unittests VpnListTest TBR=tsepez@chromium.org for copying manifest line from ash/mus/manifest.json to chrome_content_browser_manifest_overlay.json Committed: https://crrev.com/c469dd5d3ceede70f70a1e86b97c711696b1fa49 Cr-Commit-Position: refs/heads/master@{#434079}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 3

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : Move showing UI to SystemTrayClient, rename to VpnListForwarder #

Patch Set 6 : rebase, upstream patch landed #

Total comments: 2

Patch Set 7 : fix linux compile #

Patch Set 8 : fix manifest for reland #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -654 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/mojo_interface_factory.cc View 3 chunks +14 lines, -0 lines 0 comments Download
M ash/common/system/chromeos/network/tray_vpn.cc View 2 chunks +2 lines, -8 lines 0 comments Download
D ash/common/system/chromeos/network/vpn_delegate.h View 1 2 3 4 1 chunk +0 lines, -102 lines 0 comments Download
D ash/common/system/chromeos/network/vpn_delegate.cc View 1 2 3 4 1 chunk +0 lines, -74 lines 0 comments Download
D ash/common/system/chromeos/network/vpn_delegate_unittest.cc View 1 2 3 4 1 chunk +0 lines, -62 lines 0 comments Download
A + ash/common/system/chromeos/network/vpn_list.h View 1 2 3 4 5 chunks +17 lines, -18 lines 0 comments Download
A + ash/common/system/chromeos/network/vpn_list.cc View 1 2 3 4 3 chunks +23 lines, -14 lines 0 comments Download
A ash/common/system/chromeos/network/vpn_list_unittest.cc View 1 2 3 4 5 6 7 1 chunk +99 lines, -0 lines 0 comments Download
M ash/common/system/chromeos/network/vpn_list_view.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/system/chromeos/network/vpn_list_view.cc View 1 2 3 4 4 chunks +15 lines, -17 lines 0 comments Download
M ash/common/system/tray/system_tray_controller.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_controller.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 2 chunks +1 line, -5 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/wm_shell.h View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M ash/common/wm_shell.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/mus/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/mus/manifest.json View 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/system_tray_delegate_mus.h View 2 chunks +0 lines, -3 lines 0 comments Download
M ash/mus/system_tray_delegate_mus.cc View 3 chunks +1 line, -7 lines 0 comments Download
D ash/mus/vpn_delegate_mus.h View 1 2 3 4 1 chunk +0 lines, -28 lines 0 comments Download
D ash/mus/vpn_delegate_mus.cc View 1 2 3 4 1 chunk +0 lines, -17 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/interfaces/system_tray.mojom View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A ash/public/interfaces/vpn_list.mojom View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.cc View 1 2 3 4 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 3 chunks +0 lines, -6 lines 0 comments Download
D chrome/browser/ui/ash/vpn_delegate_chromeos.h View 1 2 3 4 1 chunk +0 lines, -69 lines 0 comments Download
D chrome/browser/ui/ash/vpn_delegate_chromeos.cc View 1 2 3 4 1 chunk +0 lines, -148 lines 0 comments Download
A + chrome/browser/ui/ash/vpn_list_forwarder.h View 1 2 3 4 3 chunks +14 lines, -18 lines 0 comments Download
A + chrome/browser/ui/ash/vpn_list_forwarder.cc View 1 2 3 4 6 chunks +51 lines, -41 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (38 generated)
James Cook
stevenjb, please take a look. rockot, can you take a quick look at vpn_list.h/cc and ...
4 years, 1 month ago (2016-11-18 23:15:47 UTC) #5
stevenjb
https://codereview.chromium.org/2513673004/diff/40001/ash/common/system/chromeos/network/vpn_list.cc File ash/common/system/chromeos/network/vpn_list.cc (right): https://codereview.chromium.org/2513673004/diff/40001/ash/common/system/chromeos/network/vpn_list.cc#newcode61 ash/common/system/chromeos/network/vpn_list.cc:61: void VpnList::ShowAddPage(const VPNProvider::Key& key) { This is kind of ...
4 years, 1 month ago (2016-11-19 00:04:58 UTC) #12
James Cook
rockot, please hold off. Per stevenjb's suggestions I'm going to move the "Show Add Network" ...
4 years, 1 month ago (2016-11-19 00:18:30 UTC) #13
stevenjb
https://codereview.chromium.org/2513673004/diff/2/chrome/browser/ui/ash/vpn_list_client.cc File chrome/browser/ui/ash/vpn_list_client.cc (right): https://codereview.chromium.org/2513673004/diff/2/chrome/browser/ui/ash/vpn_list_client.cc#newcode168 chrome/browser/ui/ash/vpn_list_client.cc:168: vpn_list->SetThirdPartyVpnProviders(std::move(third_party_providers)); Also, if we eliminate the UI calls, we ...
4 years, 1 month ago (2016-11-19 00:18:58 UTC) #14
James Cook
https://codereview.chromium.org/2513673004/diff/2/chrome/browser/ui/ash/vpn_list_client.cc File chrome/browser/ui/ash/vpn_list_client.cc (right): https://codereview.chromium.org/2513673004/diff/2/chrome/browser/ui/ash/vpn_list_client.cc#newcode168 chrome/browser/ui/ash/vpn_list_client.cc:168: vpn_list->SetThirdPartyVpnProviders(std::move(third_party_providers)); On 2016/11/19 00:18:58, stevenjb wrote: > Also, if ...
4 years, 1 month ago (2016-11-19 00:49:18 UTC) #15
James Cook
Steven, please take another look. I moved the "show UI" calls to the existing system ...
4 years, 1 month ago (2016-11-22 02:03:25 UTC) #18
stevenjb
LGTM! https://codereview.chromium.org/2513673004/diff/130001/ash/common/system/chromeos/network/vpn_list.h File ash/common/system/chromeos/network/vpn_list.h (right): https://codereview.chromium.org/2513673004/diff/130001/ash/common/system/chromeos/network/vpn_list.h#newcode73 ash/common/system/chromeos/network/vpn_list.h:73: void BindRequest(mojom::VpnListRequest request); Just for my edification: Why ...
4 years ago (2016-11-22 17:19:48 UTC) #29
James Cook
https://codereview.chromium.org/2513673004/diff/130001/ash/common/system/chromeos/network/vpn_list.h File ash/common/system/chromeos/network/vpn_list.h (right): https://codereview.chromium.org/2513673004/diff/130001/ash/common/system/chromeos/network/vpn_list.h#newcode73 ash/common/system/chromeos/network/vpn_list.h:73: void BindRequest(mojom::VpnListRequest request); On 2016/11/22 17:19:48, stevenjb wrote: > ...
4 years ago (2016-11-22 17:37:30 UTC) #30
James Cook
sky, can I get OWNERS for chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc/h ? tsepez, can I get OWNERS for ash/public/interfaces/system_tray.mojom ...
4 years ago (2016-11-22 17:39:26 UTC) #32
stevenjb
Thanks for the detailed explanation! It does however seem like there is a lot of ...
4 years ago (2016-11-22 17:50:12 UTC) #37
Tom Sepez
.mojom OWNERS LGTM
4 years ago (2016-11-22 18:10:03 UTC) #38
sky
LGTM
4 years ago (2016-11-22 20:50:06 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2513673004/160001
4 years ago (2016-11-22 21:14:03 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years ago (2016-11-22 22:18:31 UTC) #45
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/56e0ddccb50e0b062ea6fea8640c6dcea9ea59a7 Cr-Commit-Position: refs/heads/master@{#434004}
4 years ago (2016-11-22 22:20:47 UTC) #47
James Cook
A revert of this CL (patchset #7 id:160001) has been created in https://codereview.chromium.org/2522613004/ by jamescook@chromium.org. ...
4 years ago (2016-11-23 00:10:39 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2513673004/180001
4 years ago (2016-11-23 00:46:40 UTC) #52
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years ago (2016-11-23 01:58:31 UTC) #55
commit-bot: I haz the power
4 years ago (2016-11-23 02:00:09 UTC) #57
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c469dd5d3ceede70f70a1e86b97c711696b1fa49
Cr-Commit-Position: refs/heads/master@{#434079}

Powered by Google App Engine
This is Rietveld 408576698