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

Issue 8759014: Add ONC VPN support for OpenVPN and L2TP/IPsec VPNs (Closed)

Created:
9 years ago by kmixter1
Modified:
9 years ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, stevenjb
Visibility:
Public.

Description

Add ONC VPN support for OpenVPN and L2TP/IPsec VPNs Also simplifies some of the parsing code, adds type validation, brings the WiFi security parsing up to spec, and improves the unit tests for wifi so that they all verify the property_map_ fields (the only ones actually used to configure the network). Also fixed a general parser problem where certificates wouldn't be parsed if network configs were. BUG=chromium-os:23476 chromium-os:23477 TEST=manual import of ONC file with openvpn network, unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113120

Patch Set 1 #

Total comments: 33

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 16

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 6

Patch Set 11 : '' #

Total comments: 2

Patch Set 12 : Respond to stevenjb comments #

Patch Set 13 : tiny tweak to error message #

Total comments: 2

Patch Set 14 : address mnissler comments and fix a bunch of test memleaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1119 lines, -309 lines) Patch
M chrome/browser/chromeos/cros/native_network_parser.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/native_network_parser.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +66 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +52 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +86 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +598 lines, -235 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +293 lines, -39 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
kmixter1
This code doesn't work yet (doesn't even compile yet) but I wanted to give you ...
9 years ago (2011-12-01 02:51:51 UTC) #1
Mattias Nissler (ping if slow)
In general, I like the direction. I put some implementation comments. One thing I dislike ...
9 years ago (2011-12-01 13:09:10 UTC) #2
Charlie Lee
http://codereview.chromium.org/8759014/diff/1/chrome/browser/chromeos/cros/native_network_parser.cc File chrome/browser/chromeos/cros/native_network_parser.cc (right): http://codereview.chromium.org/8759014/diff/1/chrome/browser/chromeos/cros/native_network_parser.cc#newcode134 chrome/browser/chromeos/cros/native_network_parser.cc:134: remove extra line http://codereview.chromium.org/8759014/diff/1/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8759014/diff/1/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode421 chrome/browser/chromeos/cros/onc_network_parser.cc:421: ...
9 years ago (2011-12-01 18:53:18 UTC) #3
kmixter1
Addressed existing comments. Status is that it builds but doesn't yet work... http://codereview.chromium.org/8759014/diff/1/chrome/browser/chromeos/cros/network_library.h File chrome/browser/chromeos/cros/network_library.h ...
9 years ago (2011-12-01 19:48:39 UTC) #4
kmixter1
PTAL - current status is that unit tests pass, wifi configuration works, but parts of ...
9 years ago (2011-12-02 07:54:18 UTC) #5
Mattias Nissler (ping if slow)
LGTM. Added Steven to the reviewers list, since we'll need OWNERS approval. http://codereview.chromium.org/8759014/diff/5019/chrome/browser/chromeos/cros/onc_network_parser.h File chrome/browser/chromeos/cros/onc_network_parser.h ...
9 years ago (2011-12-02 12:23:30 UTC) #6
Charlie Lee
lgtm
9 years ago (2011-12-02 21:21:20 UTC) #7
stevenjb
I didn't look too closely at the ONC parser code, but I do have a ...
9 years ago (2011-12-02 21:34:45 UTC) #8
kmixter1
Comments resolved, unit tests pass http://codereview.chromium.org/8759014/diff/5019/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8759014/diff/5019/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode550 chrome/browser/chromeos/cros/onc_network_parser.cc:550: Network* network) { On ...
9 years ago (2011-12-03 00:20:34 UTC) #9
kmixter1
PTAL - it is now working to configure flimflam with the proper configureservice for openvpn. ...
9 years ago (2011-12-03 01:37:45 UTC) #10
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8759014/diff/20002/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8759014/diff/20002/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode510 chrome/browser/chromeos/cros/onc_network_parser.cc:510: we usually put "// static" comments in the implementation ...
9 years ago (2011-12-05 09:33:32 UTC) #11
stevenjb
For future reference: Patchset comments would help identify which deltas have significant changes, vs. rebases, ...
9 years ago (2011-12-05 18:38:18 UTC) #12
kmixter1
PTAL - current state is that openvpn is still not connecting, but the next hurdle ...
9 years ago (2011-12-05 20:34:42 UTC) #13
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8759014/diff/22006/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8759014/diff/22006/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode492 chrome/browser/chromeos/cros/onc_network_parser.cc:492: if (!inner_value->IsType(signature[field_index].type)) { Do we crash here if inner_value ...
9 years ago (2011-12-05 21:03:44 UTC) #14
kmixter1
http://codereview.chromium.org/8759014/diff/22006/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8759014/diff/22006/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode492 chrome/browser/chromeos/cros/onc_network_parser.cc:492: if (!inner_value->IsType(signature[field_index].type)) { On 2011/12/05 21:03:44, Mattias Nissler wrote: ...
9 years ago (2011-12-05 21:37:39 UTC) #15
stevenjb
LGTM
9 years ago (2011-12-05 22:18:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmixter@chromium.org/8759014/23010
9 years ago (2011-12-05 23:41:06 UTC) #17
commit-bot: I haz the power
9 years ago (2011-12-06 06:14:21 UTC) #18
Change committed as 113120

Powered by Google App Engine
This is Rietveld 408576698