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

Issue 2104012: Fixed a TODO in data export of net-internals, added Chrome version and comman... (Closed)

Created:
10 years, 7 months ago by malavv
Modified:
9 years, 7 months ago
Reviewers:
eroman, M-A Ruel
CC:
chromium-reviews, arv (Not doing code reviews), ben+cc_chromium.org
Visibility:
Public.

Description

Fixed a TODO in data export of net-internals, added Chrome version and command line. BUG=none TEST=Go to about:net-internals click on dump to text, check if version and command line are good. Patch contributed by malavv Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47926

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 9

Patch Set 6 : '' #

Total comments: 5

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 17

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -3 lines) Patch
M base/command_line.h View 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M base/command_line.cc View 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/dataview.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/resources/net_internals/main.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
M-A Ruel
I'm no javascript reviewer so skipping the javascript part. You'll need to find another reviewer ...
10 years, 7 months ago (2010-05-20 15:29:31 UTC) #1
M-A Ruel
http://codereview.chromium.org/2104012/diff/4004/15001 File base/command_line.cc (right): http://codereview.chromium.org/2104012/diff/4004/15001#newcode306 base/command_line.cc:306: const std::wstring& CommandLine::getOsIndependantCommandLineString() const { #if !defined(OS_WIN) std::string http://codereview.chromium.org/2104012/diff/4004/15001#newcode308 ...
10 years, 7 months ago (2010-05-20 17:20:43 UTC) #2
malavv
New patch with revised code to solve a net-internals todo.
10 years, 7 months ago (2010-05-20 17:52:13 UTC) #3
M-A Ruel
http://codereview.chromium.org/2104012/diff/20001/21001 File base/command_line.cc (right): http://codereview.chromium.org/2104012/diff/20001/21001#newcode306 base/command_line.cc:306: const std::string command_line_string() const { This function must be ...
10 years, 7 months ago (2010-05-20 18:31:39 UTC) #4
malavv
I have fixed inconsistencies and optimization as proposed by maruel.
10 years, 7 months ago (2010-05-20 18:46:34 UTC) #5
M-A Ruel
C++ part lgtm, pushing to Eric for the javascript.
10 years, 7 months ago (2010-05-20 18:48:58 UTC) #6
eroman
Cool, thanks for doing this! I have some style nits: http://codereview.chromium.org/2104012/diff/34001/35001 File base/command_line.cc (right): http://codereview.chromium.org/2104012/diff/34001/35001#newcode312 ...
10 years, 7 months ago (2010-05-20 19:01:36 UTC) #7
eroman
lgtm after the above nits. http://codereview.chromium.org/2104012/diff/34001/35003 File chrome/browser/dom_ui/net_internals_ui.cc (right): http://codereview.chromium.org/2104012/diff/34001/35003#newcode515 chrome/browser/dom_ui/net_internals_ui.cc:515: if (version_info == NULL) ...
10 years, 7 months ago (2010-05-20 19:08:35 UTC) #8
malavv
Hi Eric, I see what you mean, thanks for the clarifications. Maxime. On Thu, May ...
10 years, 7 months ago (2010-05-20 19:24:42 UTC) #9
eroman
LGTM. Two more optional nits: > 522 dict->SetString(L"version_mod", > 523 UTF16ToWide(platform_util::GetVersionStringModifier())); How about: dict->SetStringFromUTF16(L"version_mod", platform_util::GetVersionStringModifier()); ...
10 years, 7 months ago (2010-05-20 23:14:56 UTC) #10
malavv
10 years, 7 months ago (2010-05-21 13:54:50 UTC) #11
Correction of the remaining nits.

http://codereview.chromium.org/2104012/diff/34001/35001
File base/command_line.cc (right):

http://codereview.chromium.org/2104012/diff/34001/35001#newcode312
base/command_line.cc:312: command_line += L" ";
On 2010/05/20 19:01:36, eroman wrote:
> You can simplify this and just do:
> 
> return JoinString(argv_, ' ');
> 
> (Defined in base/string_util.h).

Done.

http://codereview.chromium.org/2104012/diff/34001/35003
File chrome/browser/dom_ui/net_internals_ui.cc (right):

http://codereview.chromium.org/2104012/diff/34001/35003#newcode507
chrome/browser/dom_ui/net_internals_ui.cc:507: // Tell the javascript about the
version of the client and it's
On 2010/05/20 19:01:36, eroman wrote:
> spelling nit: it's --> its

Done.

http://codereview.chromium.org/2104012/diff/34001/35003#newcode513
chrome/browser/dom_ui/net_internals_ui.cc:513:
chrome_app::GetChromeVersionInfo());
On 2010/05/20 19:01:36, eroman wrote:
> nit: indent another 2 spaces. (continued lines use 4 spaces).

Done.

http://codereview.chromium.org/2104012/diff/34001/35003#newcode515
chrome/browser/dom_ui/net_internals_ui.cc:515: if (version_info == NULL) {
On 2010/05/20 19:01:36, eroman wrote:
> minor nit: I would just do nothing from the C++ side in this case (and let the
> javascript handle 'undefined') variables.

Done.

http://codereview.chromium.org/2104012/diff/34001/35003#newcode527
chrome/browser/dom_ui/net_internals_ui.cc:527: dict->SetString(L"VERSION",
version_info->file_version());
On 2010/05/20 19:01:36, eroman wrote:
> I recommend using lower-case names for the properties.

Done.

http://codereview.chromium.org/2104012/diff/34001/35003#newcode530
chrome/browser/dom_ui/net_internals_ui.cc:530:
UTF16ToWide(platform_util::GetVersionStringModifier()));
On 2010/05/20 19:01:36, eroman wrote:
> nit: indent by 4 spaces.

Done.

http://codereview.chromium.org/2104012/diff/34001/35003#newcode534
chrome/browser/dom_ui/net_internals_ui.cc:534:
l10n_util::GetString(IDS_ABOUT_VERSION_OFFICIAL));
On 2010/05/20 19:01:36, eroman wrote:
> nit: indent by 4 spaces.

Done.

http://codereview.chromium.org/2104012/diff/34001/35003#newcode541
chrome/browser/dom_ui/net_internals_ui.cc:541:
CommandLine::ForCurrentProcess()->command_line_string());
On 2010/05/20 19:01:36, eroman wrote:
> ditto.

Done.

Powered by Google App Engine
This is Rietveld 408576698