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

Issue 2756603002: Print too-long command line (Closed)

Created:
3 years, 9 months ago by brucedawson
Modified:
3 years, 9 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, huangs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Print too-long command line When RegisterApplicationRestart fails with E_INVALIDARG it is supposed to indicate that the command line is too long. This error was hit on a recent test run and it was impossible to do further diagnosis because the command line is not printed, even though it is printed for other failure codes. This change prints the command line in the E_INVALIDARG case. The failure only happened once and was probably a Windows glitch since all evidence is that the command line was short enough. But, still. This change also removes some checks for win::VERSION_VISTA since Chrome requires Windows 7 or higher, and avoids some redundant calls to GetCommandLineString. Review-Url: https://codereview.chromium.org/2756603002 Cr-Commit-Position: refs/heads/master@{#457297} Committed: https://chromium.googlesource.com/chromium/src/+/fe785a58e31217e1ef0e1c8946a4e853829371f8

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove now unneeded include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -10 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.cc View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
brucedawson
Minor tweak to print better diagnostics on a failure we saw once - PTAL
3 years, 9 months ago (2017-03-15 23:41:43 UTC) #7
Lei Zhang
lgtm https://codereview.chromium.org/2756603002/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2756603002/diff/1/chrome/browser/chrome_browser_main.cc#newcode203 chrome/browser/chrome_browser_main.cc:203: #include "base/win/windows_version.h" No longer needed?
3 years, 9 months ago (2017-03-15 23:59:29 UTC) #8
brucedawson
I was briefly tempted to expand the change to make the #include in the other ...
3 years, 9 months ago (2017-03-16 00:08:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2756603002/20001
3 years, 9 months ago (2017-03-16 00:09:04 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 01:19:29 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/fe785a58e31217e1ef0e1c8946a4...

Powered by Google App Engine
This is Rietveld 408576698