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

Issue 8741009: ONC import option to chromeos tab in chrome://net-internals (Closed)

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

Description

ONC import option to chromeos tab in chrome://net-internals Add chromeos tab to chrome://net-internals. Move ONC file import input field to chromeos tab, from network options. Support for encrypted onc files. Fix net_internals browser test. BUG=chromium-os:23472, chromium-os:19397 TEST=Go to chrome://net-internals, click on chromeos tab. Should be able to import an onc file from there. If the file is encrypted, should be prompted for a passcode. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112952

Patch Set 1 #

Patch Set 2 : split out network_library for easier review #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : nits #

Patch Set 6 : nits #

Total comments: 10

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : review feedback #

Total comments: 30

Patch Set 9 : Incorporate James review feedback #

Patch Set 10 : fix margins #

Patch Set 11 : move status text to js #

Total comments: 6

Patch Set 12 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -16 lines) Patch
M chrome/browser/resources/net_internals/browser_bridge.js View 1 2 3 4 5 6 7 8 9 chunks +31 lines, -11 lines 0 comments Download
M chrome/browser/resources/net_internals/category_tabs.html View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/net_internals/chromeos_view.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/resources/net_internals/chromeos_view.html View 1 2 3 4 5 6 7 8 10 11 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/resources/net_internals/chromeos_view.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +145 lines, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/index.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/index.js View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/main.css View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/net_internals/main.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +21 lines, -0 lines 0 comments Download
M chrome/test/data/webui/net_internals/log_util.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/webui/net_internals/main.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/webui/net_internals/net_internals_test.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
achuithb
Charlie, please review. Thanks!
9 years ago (2011-12-01 10:00:08 UTC) #1
Charlie Lee
Does this stuff only show up on ChromeOS? I can't seem to tell from the ...
9 years ago (2011-12-01 19:03:15 UTC) #2
mmenke
Drive by comments: You're going to have to update the net-internals unit tests, too. One ...
9 years ago (2011-12-01 19:12:24 UTC) #3
achuithb
Matt: I'll take a look at the unit tests. Thanks! http://codereview.chromium.org/8741009/diff/12001/chrome/browser/resources/net_internals/main.js File chrome/browser/resources/net_internals/main.js (right): http://codereview.chromium.org/8741009/diff/12001/chrome/browser/resources/net_internals/main.js#newcode106 ...
9 years ago (2011-12-01 19:14:55 UTC) #4
mmenke
http://codereview.chromium.org/8741009/diff/12001/chrome/browser/resources/net_internals/browser_bridge.js File chrome/browser/resources/net_internals/browser_bridge.js (right): http://codereview.chromium.org/8741009/diff/12001/chrome/browser/resources/net_internals/browser_bridge.js#newcode230 chrome/browser/resources/net_internals/browser_bridge.js:230: nit: Blank line not needed. http://codereview.chromium.org/8741009/diff/12001/chrome/browser/resources/net_internals/chromeos_view.html File chrome/browser/resources/net_internals/chromeos_view.html (right): ...
9 years ago (2011-12-01 19:33:35 UTC) #5
achuithb
Matt, thanks for the feedback. PTAL. http://codereview.chromium.org/8741009/diff/12001/chrome/browser/resources/net_internals/browser_bridge.js File chrome/browser/resources/net_internals/browser_bridge.js (right): http://codereview.chromium.org/8741009/diff/12001/chrome/browser/resources/net_internals/browser_bridge.js#newcode230 chrome/browser/resources/net_internals/browser_bridge.js:230: On 2011/12/01 19:33:35, ...
9 years ago (2011-12-02 05:25:41 UTC) #6
mmenke
LGTM. Should be fine as-is, but I do have one suggestion. http://codereview.chromium.org/8741009/diff/14004/chrome/browser/resources/net_internals/chromeos_view.js File chrome/browser/resources/net_internals/chromeos_view.js (right): ...
9 years ago (2011-12-02 15:07:54 UTC) #7
achuithb
That's 3 suggestions :) I'm going to defer handling of file read errors as it's ...
9 years ago (2011-12-02 19:49:10 UTC) #8
mmenke
On 2011/12/02 19:49:10, achuith.bhandarkar wrote: > That's 3 suggestions :) > > I'm going to ...
9 years ago (2011-12-02 19:55:05 UTC) #9
Charlie Lee
lgtm
9 years ago (2011-12-02 20:19:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/8741009/17005
9 years ago (2011-12-02 21:29:51 UTC) #11
commit-bot: I haz the power
Presubmit check for 8741009-17005 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-02 21:30:23 UTC) #12
achuithb
James: Need owner lgtm. Thanks!
9 years ago (2011-12-02 22:01:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/8741009/17005
9 years ago (2011-12-02 22:02:12 UTC) #14
mmenke
On 2011/12/02 22:02:12, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
9 years ago (2011-12-02 22:03:25 UTC) #15
mmenke
Now be abused, rather.
9 years ago (2011-12-02 22:03:41 UTC) #16
James Hawkins
http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/browser_bridge.js File chrome/browser/resources/net_internals/browser_bridge.js (right): http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/browser_bridge.js#newcode320 chrome/browser/resources/net_internals/browser_bridge.js:320: for (var i = 0; i < this.crosONCFileParseObservers_.length; ++i) ...
9 years ago (2011-12-02 22:08:56 UTC) #17
James Hawkins
On 2011/12/02 22:03:25, Matt Menke wrote: > On 2011/12/02 22:02:12, I haz the power (commit-bot) ...
9 years ago (2011-12-02 22:10:03 UTC) #18
achuithb
James: Thanks for the feedback. PTAL. Thanks! http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/browser_bridge.js File chrome/browser/resources/net_internals/browser_bridge.js (right): http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/browser_bridge.js#newcode320 chrome/browser/resources/net_internals/browser_bridge.js:320: for (var ...
9 years ago (2011-12-03 00:23:32 UTC) #19
James Hawkins
http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/chromeos_view.js File chrome/browser/resources/net_internals/chromeos_view.js (right): http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/chromeos_view.js#newcode14 chrome/browser/resources/net_internals/chromeos_view.js:14: var fileContent; On 2011/12/03 00:23:32, achuith.bhandarkar wrote: > On ...
9 years ago (2011-12-04 18:13:07 UTC) #20
achuithb
James, PTAL. http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/chromeos_view.js File chrome/browser/resources/net_internals/chromeos_view.js (right): http://codereview.chromium.org/8741009/diff/17005/chrome/browser/resources/net_internals/chromeos_view.js#newcode14 chrome/browser/resources/net_internals/chromeos_view.js:14: var fileContent; On 2011/12/04 18:13:07, James Hawkins ...
9 years ago (2011-12-04 21:56:41 UTC) #21
James Hawkins
http://codereview.chromium.org/8741009/diff/27005/chrome/browser/resources/net_internals/chromeos_view.js File chrome/browser/resources/net_internals/chromeos_view.js (right): http://codereview.chromium.org/8741009/diff/27005/chrome/browser/resources/net_internals/chromeos_view.js#newcode18 chrome/browser/resources/net_internals/chromeos_view.js:18: if (fileContent) { On 2011/12/04 21:56:42, achuith.bhandarkar wrote: > ...
9 years ago (2011-12-04 22:11:54 UTC) #22
James Hawkins
LGTM
9 years ago (2011-12-04 22:12:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/8741009/31002
9 years ago (2011-12-05 00:23:08 UTC) #24
commit-bot: I haz the power
Change committed as 112952
9 years ago (2011-12-05 01:34:35 UTC) #25
achuithb
9 years ago (2011-12-07 18:49:27 UTC) #26
Thanks for the review, James!

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

http://codereview.chromium.org/8741009/diff/27005/chrome/browser/resources/ne...
chrome/browser/resources/net_internals/chromeos_view.js:18: if (fileContent) {
On 2011/12/04 22:11:54, James Hawkins wrote:
> On 2011/12/04 21:56:42, achuith.bhandarkar wrote:
> > On 2011/12/04 18:13:07, James Hawkins wrote:
> > > No braces for single-line logic blocks.
> > 
> > In C++, you need braces for single line blocks with else statements. So it's
> > different in js? Done.
> 
> From the C++ style guide:
> 
> "In general, curly braces are not required for single-line statements..."
> 
> You may be confused about this line:
> 
> "Curly braces around both IF and ELSE required because one of the clauses used
> braces."
> 
> The key part is that braces are only required if one of the blocks requires
> braces. If they're both single line, no braces is fine.

Ah, thanks for the explanation. Yes, I was indeed confused about this.

Powered by Google App Engine
This is Rietveld 408576698