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

Issue 12674028: Report text output and exit code for command-line operations. (Closed)

Created:
7 years, 9 months ago by erikwright (departed)
Modified:
5 years, 4 months ago
Reviewers:
gab, robertshield
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, sail+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Report text output and exit code for command-line operations. Allows a client of chrome.exe to observe the text output and numerical exit code of command-line invocations even if the launched process outlives the operation or vice-versa (i.e., the launched process exits immediately but delegates the operation to a previously running process via ProcessSingleton). app_host.exe uses this functionality to ensure the results of operations can be reported to its clients (via typical console output and process exit code). BUG=170726, 170734

Patch Set 1 #

Patch Set 2 : WIP. #

Patch Set 3 : off master #

Patch Set 4 : Integrated. #

Patch Set 5 : missed merge. #

Patch Set 6 : Line endings. #

Total comments: 56

Patch Set 7 : Integrate upstream changes. #

Patch Set 8 : Forgotten review responses. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+803 lines, -74 lines) Patch
M apps/app_host/DEPS View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M apps/app_host/app_host_main.cc View 1 2 3 4 5 6 2 chunks +11 lines, -9 lines 0 comments Download
A apps/app_host/operation_launcher.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A apps/app_host/operation_launcher.cc View 1 2 3 4 5 6 1 chunk +135 lines, -0 lines 0 comments Download
A apps/app_host/test_operation.cc View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
M apps/apps.gypi View 1 2 3 4 5 6 3 chunks +55 lines, -6 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 11 chunks +67 lines, -8 lines 0 comments Download
M chrome/browser/chrome_process_singleton.h View 1 2 3 4 5 6 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/chrome_process_singleton.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_process_singleton_unittest.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
A chrome/browser/operation_output.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/operation_output.cc View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/operation_output_win.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/operation_output_win.cc View 1 2 3 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/process_singleton_startup_lock.h View 1 2 3 4 5 6 3 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/process_singleton_startup_lock.cc View 1 2 3 4 5 6 3 chunks +40 lines, -9 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.h View 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 6 7 7 chunks +53 lines, -11 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 6 6 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_interactive_uitest.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
erikwright (departed)
gab, robert: PTAL. Note that I still have work to do to implement a good ...
7 years, 9 months ago (2013-03-27 02:34:12 UTC) #1
erikwright (departed)
On 2013/03/27 02:34:12, erikwright wrote: > gab, robert: PTAL. > > Note that I still ...
7 years, 9 months ago (2013-03-27 02:34:45 UTC) #2
robertshield
Working my way through, couple of questions, streaming comments as I go. https://codereview.chromium.org/12674028/diff/80001/apps/app_host/app_host_main.cc File apps/app_host/app_host_main.cc ...
7 years, 9 months ago (2013-03-28 02:38:03 UTC) #3
erikwright (departed)
https://codereview.chromium.org/12674028/diff/80001/apps/app_host/operation_launcher.cc File apps/app_host/operation_launcher.cc (right): https://codereview.chromium.org/12674028/diff/80001/apps/app_host/operation_launcher.cc#newcode74 apps/app_host/operation_launcher.cc:74: NULL, 0) == 0) { On 2013/03/28 02:38:03, robertshield ...
7 years, 9 months ago (2013-03-28 02:49:52 UTC) #4
gab
Also streaming what I have so far (stopped at the top of chrome_browser_main.cc for tonight). ...
7 years, 9 months ago (2013-03-28 03:06:05 UTC) #5
robertshield
https://codereview.chromium.org/12674028/diff/80001/apps/app_host/operation_launcher.cc File apps/app_host/operation_launcher.cc (right): https://codereview.chromium.org/12674028/diff/80001/apps/app_host/operation_launcher.cc#newcode74 apps/app_host/operation_launcher.cc:74: NULL, 0) == 0) { On 2013/03/28 02:49:53, erikwright ...
7 years, 9 months ago (2013-03-28 03:39:34 UTC) #6
robertshield
Few more nits and comments. https://codereview.chromium.org/12674028/diff/80001/chrome/browser/process_singleton_lock.cc File chrome/browser/process_singleton_lock.cc (right): https://codereview.chromium.org/12674028/diff/80001/chrome/browser/process_singleton_lock.cc#newcode64 chrome/browser/process_singleton_lock.cc:64: saved_startup_messages_.push_back( minor nit: since ...
7 years, 9 months ago (2013-03-28 14:31:48 UTC) #7
gab
https://codereview.chromium.org/12674028/diff/80001/chrome/browser/process_singleton_lock.cc File chrome/browser/process_singleton_lock.cc (right): https://codereview.chromium.org/12674028/diff/80001/chrome/browser/process_singleton_lock.cc#newcode64 chrome/browser/process_singleton_lock.cc:64: saved_startup_messages_.push_back( On 2013/03/28 14:31:48, robertshield wrote: > minor nit: ...
7 years, 9 months ago (2013-03-28 14:52:41 UTC) #8
erikwright (departed)
Updated a bit more. I'm going to wait for the upstream patch to land before ...
7 years, 8 months ago (2013-04-18 17:43:04 UTC) #9
gab
sgtm, please ping when ready for re-review. https://codereview.chromium.org/12674028/diff/80001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/12674028/diff/80001/chrome/browser/chrome_browser_main.cc#newcode11 chrome/browser/chrome_browser_main.cc:11: #include <limits.h> ...
7 years, 8 months ago (2013-04-19 14:37:47 UTC) #10
gab
7 years, 1 month ago (2013-11-19 13:03:53 UTC) #11
ping? Shall we close this?

Powered by Google App Engine
This is Rietveld 408576698