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

Issue 10832309: Make printf and LOG output to cmd console for Windows (Closed)

Created:
8 years, 4 months ago by jbates
Modified:
8 years, 4 months ago
Reviewers:
brettw, M-A Ruel, Wez
CC:
chromium-reviews
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : minor fix #

Patch Set 3 : compile #

Total comments: 4

Patch Set 4 : brettw, maruel feedback #

Total comments: 5

Patch Set 5 : added error checking #

Patch Set 6 : merge / no change #

Patch Set 7 : wez feedback + removed stdin support #

Total comments: 4

Patch Set 8 : wez feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -35 lines) Patch
M base/process_util.h View 2 chunks +7 lines, -1 line 0 comments Download
M base/process_util_win.cc View 1 2 3 4 5 6 7 3 chunks +26 lines, -34 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
jbates
8 years, 4 months ago (2012-08-14 21:17:42 UTC) #1
jbates
ptal
8 years, 4 months ago (2012-08-15 20:03:28 UTC) #2
brettw
lgtm https://chromiumcodereview.appspot.com/10832309/diff/5001/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/5001/base/process_util_win.cc#newcode73 base/process_util_win.cc:73: void AttachToConsole() { Maybe just rename this one ...
8 years, 4 months ago (2012-08-19 23:26:46 UTC) #3
M-A Ruel
https://chromiumcodereview.appspot.com/10832309/diff/5001/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/5001/base/process_util_win.cc#newcode79 base/process_util_win.cc:79: if (!AttachConsole(ATTACH_PARENT_PROCESS)) { This already takes care of not ...
8 years, 4 months ago (2012-08-20 12:42:28 UTC) #4
jbates
https://chromiumcodereview.appspot.com/10832309/diff/5001/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/5001/base/process_util_win.cc#newcode73 base/process_util_win.cc:73: void AttachToConsole() { On 2012/08/19 23:26:46, brettw wrote: > ...
8 years, 4 months ago (2012-08-20 17:43:00 UTC) #5
M-A Ruel
I preferred the name AttachToConsole but I don't mind. lgtm
8 years, 4 months ago (2012-08-20 17:57:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbates@chromium.org/10832309/11001
8 years, 4 months ago (2012-08-20 20:41:52 UTC) #7
commit-bot: I haz the power
Change committed as 152432
8 years, 4 months ago (2012-08-20 23:52:26 UTC) #8
Wez
https://chromiumcodereview.appspot.com/10832309/diff/11001/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/11001/base/process_util_win.cc#newcode144 base/process_util_win.cc:144: if (result == ERROR_INVALID_HANDLE || result == ERROR_INVALID_HANDLE) { ...
8 years, 4 months ago (2012-08-21 18:08:41 UTC) #9
jbates
https://chromiumcodereview.appspot.com/10832309/diff/11001/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/11001/base/process_util_win.cc#newcode144 base/process_util_win.cc:144: if (result == ERROR_INVALID_HANDLE || result == ERROR_INVALID_HANDLE) { ...
8 years, 4 months ago (2012-08-21 18:58:01 UTC) #10
jbates
The original patch crashed on some dude's Canary run on XP with --enable-logging... I'm guessing ...
8 years, 4 months ago (2012-08-21 19:16:10 UTC) #11
Wez
https://chromiumcodereview.appspot.com/10832309/diff/11001/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/11001/base/process_util_win.cc#newcode153 base/process_util_win.cc:153: *stdout = *_fdopen(raw_out, "w"); On 2012/08/21 18:58:01, jbates wrote: ...
8 years, 4 months ago (2012-08-21 20:03:45 UTC) #12
jbates
wez: ptal - thanks for the tip, this looks a lot cleaner.
8 years, 4 months ago (2012-08-21 23:22:35 UTC) #13
Wez
https://chromiumcodereview.appspot.com/10832309/diff/11007/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/11007/base/process_util_win.cc#newcode155 base/process_util_win.cc:155: if (freopen("CONOUT$", "w", stderr)) CONOUT$->CONERR$ https://chromiumcodereview.appspot.com/10832309/diff/11007/base/process_util_win.cc#newcode157 base/process_util_win.cc:157: You're not ...
8 years, 4 months ago (2012-08-21 23:37:02 UTC) #14
Wez
I've just realised that these changes are happening on the same CL for the original ...
8 years, 4 months ago (2012-08-21 23:38:50 UTC) #15
jbates
On 2012/08/21 23:38:50, Wez wrote: > I've just realised that these changes are happening on ...
8 years, 4 months ago (2012-08-21 23:44:30 UTC) #16
jbates
https://chromiumcodereview.appspot.com/10832309/diff/11007/base/process_util_win.cc File base/process_util_win.cc (right): https://chromiumcodereview.appspot.com/10832309/diff/11007/base/process_util_win.cc#newcode155 base/process_util_win.cc:155: if (freopen("CONOUT$", "w", stderr)) On 2012/08/21 23:37:02, Wez wrote: ...
8 years, 4 months ago (2012-08-21 23:46:38 UTC) #17
Wez
On 2012/08/21 23:44:30, jbates wrote: > On 2012/08/21 23:38:50, Wez wrote: > > I've just ...
8 years, 4 months ago (2012-08-21 23:51:52 UTC) #18
jbates
On 2012/08/21 23:51:52, Wez wrote: > On 2012/08/21 23:44:30, jbates wrote: > > On 2012/08/21 ...
8 years, 4 months ago (2012-08-22 00:01:03 UTC) #19
Wez
On 2012/08/22 00:01:03, jbates wrote: > On 2012/08/21 23:51:52, Wez wrote: > > On 2012/08/21 ...
8 years, 4 months ago (2012-08-22 00:14:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbates@chromium.org/10832309/20001
8 years, 4 months ago (2012-08-22 00:25:53 UTC) #21
commit-bot: I haz the power
8 years, 4 months ago (2012-08-22 04:06:08 UTC) #22
Change committed as 152722

Powered by Google App Engine
This is Rietveld 408576698