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

Issue 2510083006: chromeos: Move ownership of ash VPN provider list from chrome into ash (Closed)

Created:
4 years, 1 month ago by James Cook
Modified:
4 years ago
Reviewers:
stevenjb, bruthig
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, sadrul, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Move ownership of ash VPN provider list from chrome into ash This will make it easier to convert VPNDelegate to a mojo interface for mustash. The ash VPNDelegate maintains the list of providers. It is responsible for adding the built-in OpenVPN provider. Chrome only provides the list of extension-backed VPN providers. Collpase VPNProvider::Key and VPNProvider into a single struct because there is a 1:1 mapping between the two structs, so there is no need for a separate key. BUG=651148 TEST=added VPNDelegateTest to ash_unittests Committed: https://crrev.com/2dd804b7babf9e02ecfec278fb628e67dcbaa837 Cr-Commit-Position: refs/heads/master@{#433745}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : rebase #

Total comments: 8

Patch Set 4 : review comments #

Patch Set 5 : Collapse VPNProvider::Key and VPNProvider structs #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -155 lines) Patch
M ash/ash_chromeos_strings.grdp View 1 2 chunks +6 lines, -3 lines 0 comments Download
M ash/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/chromeos/network/vpn_delegate.h View 1 2 3 4 2 chunks +37 lines, -36 lines 0 comments Download
M ash/common/system/chromeos/network/vpn_delegate.cc View 1 2 3 4 2 chunks +41 lines, -22 lines 0 comments Download
A ash/common/system/chromeos/network/vpn_delegate_unittest.cc View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M ash/common/system/chromeos/network/vpn_list_view.h View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M ash/common/system/chromeos/network/vpn_list_view.cc View 1 2 3 4 11 chunks +50 lines, -32 lines 1 comment Download
M ash/mus/vpn_delegate_mus.h View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M ash/mus/vpn_delegate_mus.cc View 1 2 3 4 1 chunk +1 line, -11 lines 0 comments Download
M chrome/app/chromeos_strings.grdp View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/vpn_delegate_chromeos.h View 1 2 3 4 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/ash/vpn_delegate_chromeos.cc View 1 2 3 4 4 chunks +9 lines, -28 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler_strings.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (26 generated)
James Cook
Steven, please take a look. I've got an in-progress follow-up CL that converts things to ...
4 years, 1 month ago (2016-11-18 18:47:11 UTC) #4
James Cook
Steven, please take a look. https://codereview.chromium.org/2510083006/diff/40001/ash/common/system/chromeos/network/vpn_delegate.h File ash/common/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/2510083006/diff/40001/ash/common/system/chromeos/network/vpn_delegate.h#newcode86 ash/common/system/chromeos/network/vpn_delegate.h:86: virtual void ShowAddPage(const VPNProvider::Key& ...
4 years ago (2016-11-21 19:23:30 UTC) #13
stevenjb
https://codereview.chromium.org/2510083006/diff/20001/ash/common/system/chromeos/network/vpn_delegate.cc File ash/common/system/chromeos/network/vpn_delegate.cc (right): https://codereview.chromium.org/2510083006/diff/20001/ash/common/system/chromeos/network/vpn_delegate.cc#newcode33 ash/common/system/chromeos/network/vpn_delegate.cc:33: } This appears to be only used in vpn_list_view.cc, ...
4 years ago (2016-11-21 20:23:18 UTC) #14
James Cook
Steven, please take another look. I also collapsed VPNProvider::Key and VPNProvider into a single struct. ...
4 years ago (2016-11-21 23:58:38 UTC) #23
stevenjb
Thanks for doing the extra cleanup, lgtm! https://codereview.chromium.org/2510083006/diff/100001/ash/common/system/chromeos/network/vpn_list_view.cc File ash/common/system/chromeos/network/vpn_list_view.cc (right): https://codereview.chromium.org/2510083006/diff/100001/ash/common/system/chromeos/network/vpn_list_view.cc#newcode79 ash/common/system/chromeos/network/vpn_list_view.cc:79: } Thanks ...
4 years ago (2016-11-22 00:08:36 UTC) #26
James Cook
+bruthig just FYI, since I see you have an open bug for MD tray VPN. ...
4 years ago (2016-11-22 00:14:06 UTC) #28
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/2510083006/100001
4 years ago (2016-11-22 00:14:42 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-11-22 02:16:24 UTC) #33
commit-bot: I haz the power
4 years ago (2016-11-22 02:20:59 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2dd804b7babf9e02ecfec278fb628e67dcbaa837
Cr-Commit-Position: refs/heads/master@{#433745}

Powered by Google App Engine
This is Rietveld 408576698