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

Issue 984863005: Add ash::VPNDelegate and Chrome OS implementation (Closed)

Created:
5 years, 9 months ago by bartfab (slow)
Modified:
5 years, 9 months ago
Reviewers:
stevenjb, Daniel Erat
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ash::VPNDelegate and Chrome OS implementation This CL is the first step toward support for third-party VPNs in ash UI. t adds a delegate interface that ash UI will use to retrieve the list of available VPN providers and request that a VPN provider show its "add network" dialog. The CL was tested together with follow-up CLs which wire up the actual UI. BUG=460428 TEST=Manual, together with follow-ups that wire up the UI Committed: https://crrev.com/99af3de35226ec378b60dbb89d69c331c8800b62 Cr-Commit-Position: refs/heads/master@{#320939}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments. #

Total comments: 2

Patch Set 3 : Addressed comment. #

Total comments: 3

Patch Set 4 : Move knowledge of the built-in OpenVPN provider from ash UI into the VPNDelegate. #

Total comments: 8

Patch Set 5 : Added a VPNProvider::Key abstraction. #

Total comments: 11

Patch Set 6 : Rebased. #

Patch Set 7 : Addressed comments. Reformated. #

Patch Set 8 : Fixed crash during device-local account login. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -0 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A + ash/system/chromeos/network/DEPS View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A ash/system/chromeos/network/vpn_delegate.h View 1 2 3 4 5 6 1 chunk +101 lines, -0 lines 0 comments Download
A ash/system/chromeos/network/vpn_delegate.cc View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/vpn_delegate_chromeos.h View 1 2 3 4 5 6 7 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/vpn_delegate_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +169 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/network_state.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chromeos/network/network_state.cc View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M ui/chromeos/ui_chromeos_strings.grd View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 33 (6 generated)
bartfab (slow)
Hi Daniel, Could you please review? Steven, FYI.
5 years, 9 months ago (2015-03-09 18:32:48 UTC) #2
Daniel Erat
https://codereview.chromium.org/984863005/diff/1/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/1/ash/system/chromeos/network/vpn_delegate.h#newcode20 ash/system/chromeos/network/vpn_delegate.h:20: nit: declare d'tor here and add empty implementation in ...
5 years, 9 months ago (2015-03-09 19:46:19 UTC) #3
bartfab (slow)
https://codereview.chromium.org/984863005/diff/1/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/1/ash/system/chromeos/network/vpn_delegate.h#newcode20 ash/system/chromeos/network/vpn_delegate.h:20: On 2015/03/09 19:46:19, Daniel Erat wrote: > nit: declare ...
5 years, 9 months ago (2015-03-09 21:04:23 UTC) #4
Daniel Erat
lgtm
5 years, 9 months ago (2015-03-09 21:34:43 UTC) #5
stevenjb
https://codereview.chromium.org/984863005/diff/20001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc File chrome/browser/ui/ash/vpn_delegate_chromeos.cc (right): https://codereview.chromium.org/984863005/diff/20001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc#newcode86 chrome/browser/ui/ash/vpn_delegate_chromeos.cc:86: } I think we should cache these. Since this ...
5 years, 9 months ago (2015-03-09 23:20:03 UTC) #7
bartfab (slow)
https://codereview.chromium.org/984863005/diff/20001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc File chrome/browser/ui/ash/vpn_delegate_chromeos.cc (right): https://codereview.chromium.org/984863005/diff/20001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc#newcode86 chrome/browser/ui/ash/vpn_delegate_chromeos.cc:86: } On 2015/03/09 23:20:03, stevenjb wrote: > I think ...
5 years, 9 months ago (2015-03-10 17:54:54 UTC) #8
stevenjb
lgtm with a suggestion https://codereview.chromium.org/984863005/diff/40001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc File chrome/browser/ui/ash/vpn_delegate_chromeos.cc (right): https://codereview.chromium.org/984863005/diff/40001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc#newcode133 chrome/browser/ui/ash/vpn_delegate_chromeos.cc:133: } nit: Even though loading ...
5 years, 9 months ago (2015-03-10 18:06:33 UTC) #9
bartfab (slow)
https://codereview.chromium.org/984863005/diff/40001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc File chrome/browser/ui/ash/vpn_delegate_chromeos.cc (right): https://codereview.chromium.org/984863005/diff/40001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc#newcode133 chrome/browser/ui/ash/vpn_delegate_chromeos.cc:133: } On 2015/03/10 18:06:33, stevenjb wrote: > nit: Even ...
5 years, 9 months ago (2015-03-10 21:13:48 UTC) #10
stevenjb
Still lgtm https://codereview.chromium.org/984863005/diff/40001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc File chrome/browser/ui/ash/vpn_delegate_chromeos.cc (right): https://codereview.chromium.org/984863005/diff/40001/chrome/browser/ui/ash/vpn_delegate_chromeos.cc#newcode133 chrome/browser/ui/ash/vpn_delegate_chromeos.cc:133: } On 2015/03/10 21:13:48, bartfab wrote: > ...
5 years, 9 months ago (2015-03-10 21:25:13 UTC) #11
bartfab (slow)
Steven, Daniel, could you take another look? I moved the logic that adds the built-in ...
5 years, 9 months ago (2015-03-11 14:09:14 UTC) #12
Daniel Erat
lgtm
5 years, 9 months ago (2015-03-11 14:20:33 UTC) #13
stevenjb
https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 ash/system/chromeos/network/vpn_delegate.h:24: // Opaque ID. The empty string is also a ...
5 years, 9 months ago (2015-03-11 16:52:52 UTC) #14
bartfab (slow)
https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 ash/system/chromeos/network/vpn_delegate.h:24: // Opaque ID. The empty string is also a ...
5 years, 9 months ago (2015-03-11 17:27:04 UTC) #15
stevenjb
https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 ash/system/chromeos/network/vpn_delegate.h:24: // Opaque ID. The empty string is also a ...
5 years, 9 months ago (2015-03-11 18:23:02 UTC) #16
bartfab (slow)
https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 ash/system/chromeos/network/vpn_delegate.h:24: // Opaque ID. The empty string is also a ...
5 years, 9 months ago (2015-03-11 18:27:14 UTC) #17
stevenjb
https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 ash/system/chromeos/network/vpn_delegate.h:24: // Opaque ID. The empty string is also a ...
5 years, 9 months ago (2015-03-11 18:36:23 UTC) #18
stevenjb
On 2015/03/11 18:36:23, stevenjb wrote: > https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h > File ash/system/chromeos/network/vpn_delegate.h (right): > > https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 > ...
5 years, 9 months ago (2015-03-11 18:39:48 UTC) #19
bartfab (slow)
https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h File ash/system/chromeos/network/vpn_delegate.h (right): https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 ash/system/chromeos/network/vpn_delegate.h:24: // Opaque ID. The empty string is also a ...
5 years, 9 months ago (2015-03-11 22:36:26 UTC) #20
bartfab (slow)
On 2015/03/11 22:36:26, bartfab wrote: > https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h > File ash/system/chromeos/network/vpn_delegate.h (right): > > https://codereview.chromium.org/984863005/diff/60001/ash/system/chromeos/network/vpn_delegate.h#newcode24 > ...
5 years, 9 months ago (2015-03-12 11:11:07 UTC) #21
bartfab (slow)
https://codereview.chromium.org/984863005/diff/80001/ash/system/chromeos/network/DEPS File ash/system/chromeos/network/DEPS (right): https://codereview.chromium.org/984863005/diff/80001/ash/system/chromeos/network/DEPS#newcode2 ash/system/chromeos/network/DEPS:2: "+third_party/cros_system_api", This was a transitive dependency already anyway as ...
5 years, 9 months ago (2015-03-12 11:13:43 UTC) #22
bartfab (slow)
5 years, 9 months ago (2015-03-12 17:27:33 UTC) #23
stevenjb
lgtm with nits. https://codereview.chromium.org/984863005/diff/80001/ash/system/chromeos/network/vpn_delegate.cc File ash/system/chromeos/network/vpn_delegate.cc (right): https://codereview.chromium.org/984863005/diff/80001/ash/system/chromeos/network/vpn_delegate.cc#newcode29 ash/system/chromeos/network/vpn_delegate.cc:29: return network.vpn_provider_extension_id().empty(); We should comment this. ...
5 years, 9 months ago (2015-03-12 17:40:45 UTC) #24
bartfab (slow)
https://codereview.chromium.org/984863005/diff/80001/ash/system/chromeos/network/vpn_delegate.cc File ash/system/chromeos/network/vpn_delegate.cc (right): https://codereview.chromium.org/984863005/diff/80001/ash/system/chromeos/network/vpn_delegate.cc#newcode29 ash/system/chromeos/network/vpn_delegate.cc:29: return network.vpn_provider_extension_id().empty(); On 2015/03/12 17:40:45, stevenjb wrote: > We ...
5 years, 9 months ago (2015-03-17 12:38:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984863005/120001
5 years, 9 months ago (2015-03-17 12:39:03 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/984863005/140001
5 years, 9 months ago (2015-03-17 17:08:54 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 9 months ago (2015-03-17 18:02:07 UTC) #32
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 18:02:44 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/99af3de35226ec378b60dbb89d69c331c8800b62
Cr-Commit-Position: refs/heads/master@{#320939}

Powered by Google App Engine
This is Rietveld 408576698