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

Issue 8883046: Show parse errors in the UI when loading ONC files. (Closed)

Created:
9 years ago by Charlie Lee
Modified:
9 years ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, eroman, mmenke, arv (Not doing code reviews), Paweł Hajdan Jr., stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Show parse errors in the UI when loading ONC files. Resubmitting reverted CL with fix BUG=chromium-os:23757 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114558

Patch Set 1 : '' #

Patch Set 2 : '' #

Total comments: 17

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -37 lines) Patch
M chrome/browser/chromeos/cros/mock_network_library.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 1 2 3 4 5 5 chunks +24 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser.cc View 1 2 3 4 5 19 chunks +57 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser_unittest.cc View 1 2 3 4 5 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/policy/network_configuration_updater.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/policy/network_configuration_updater_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/net_internals/browser_bridge.js View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/net_internals/chromeos_view.js View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/net_internals_ui.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Charlie Lee
9 years ago (2011-12-10 01:01:10 UTC) #1
achuithb
http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.h File chrome/browser/chromeos/cros/network_library.h (right): http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.h#newcode1794 chrome/browser/chromeos/cros/network_library.h:1794: virtual bool LoadOncNetworks(const std::string& onc_blob, I don't think anybody ...
9 years ago (2011-12-10 01:18:11 UTC) #2
kmixter1
Some early feedback. Looking forward to having these better diagnostics. http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.cc#newcode2883 ...
9 years ago (2011-12-10 15:13:09 UTC) #3
Charlie Lee
http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.cc#newcode2883 chrome/browser/chromeos/cros/network_library.cc:2883: if (parser.GetNetworkConfigsSize() == 0) { On 2011/12/10 15:13:09, kmixter1 ...
9 years ago (2011-12-14 17:02:20 UTC) #4
kmixter1
lgtm nits http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.h File chrome/browser/chromeos/cros/network_library.h (right): http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.h#newcode1794 chrome/browser/chromeos/cros/network_library.h:1794: virtual bool LoadOncNetworks(const std::string& onc_blob, On 2011/12/14 ...
9 years ago (2011-12-14 19:46:38 UTC) #5
kmixter1
http://codereview.chromium.org/8883046/diff/15001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/8883046/diff/15001/chrome/browser/chromeos/cros/network_library.cc#newcode2853 chrome/browser/chromeos/cros/network_library.cc:2853: if (error) On 2011/12/14 19:46:38, kmixter1 wrote: > There ...
9 years ago (2011-12-14 19:48:36 UTC) #6
achuithb
lgtm http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.h File chrome/browser/chromeos/cros/network_library.h (right): http://codereview.chromium.org/8883046/diff/8001/chrome/browser/chromeos/cros/network_library.h#newcode1794 chrome/browser/chromeos/cros/network_library.h:1794: virtual bool LoadOncNetworks(const std::string& onc_blob, On 2011/12/14 19:46:38, ...
9 years ago (2011-12-14 20:08:03 UTC) #7
Charlie Lee
Mattias, please review chrome/browser/policy Matt, please review net_internals changes
9 years ago (2011-12-14 22:34:59 UTC) #8
mmenke
LGTM http://codereview.chromium.org/8883046/diff/16013/chrome/browser/resources/net_internals/chromeos_view.js File chrome/browser/resources/net_internals/chromeos_view.js (right): http://codereview.chromium.org/8883046/diff/16013/chrome/browser/resources/net_internals/chromeos_view.js#newcode23 chrome/browser/resources/net_internals/chromeos_view.js:23: setParseStatus_("ONC file parse failed: cannot read file"); nit: ...
9 years ago (2011-12-14 22:42:41 UTC) #9
Mattias Nissler (ping if slow)
Policy LGTM. And I'll have to rebase my CL since I added another parameter. Sigh. ...
9 years ago (2011-12-14 22:45:12 UTC) #10
Charlie Lee
9 years ago (2011-12-14 22:52:02 UTC) #11
Thanks.

http://codereview.chromium.org/8883046/diff/16013/chrome/browser/policy/netwo...
File chrome/browser/policy/network_configuration_updater.cc (right):

http://codereview.chromium.org/8883046/diff/16013/chrome/browser/policy/netwo...
chrome/browser/policy/network_configuration_updater.cc:60: if
(!network_library_->LoadOncNetworks(new_network_config, "", &error))
On 2011/12/14 22:45:12, Mattias Nissler wrote:
> you need curlies here.

Done.

http://codereview.chromium.org/8883046/diff/16013/chrome/browser/resources/ne...
File chrome/browser/resources/net_internals/chromeos_view.js (right):

http://codereview.chromium.org/8883046/diff/16013/chrome/browser/resources/ne...
chrome/browser/resources/net_internals/chromeos_view.js:23: setParseStatus_("ONC
file parse failed: cannot read file");
On 2011/12/14 22:42:41, Matt Menke wrote:
> nit:  Javascript should use single quotes, as it's compatible with quoting of
> HTML strings.  This applies below, too, just missed it before.

Done.

Powered by Google App Engine
This is Rietveld 408576698