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

Issue 7283019: base: refactor LaunchApp variants into a single function (Closed)

Created:
9 years, 5 months ago by Evan Martin
Modified:
9 years, 5 months ago
Reviewers:
Mark Mentovai, brettw
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

base: refactor LaunchApp variants into a single function base provides a bunch of process-spawning functions that only differ by one or two arguments; worse, they're all backed by the same implementation anyway. Unify all the functions into one LaunchProcess() function, which takes a struct containing a bunch of optional arguments. For this change, I'm trying to not change the base API. Follow up changes can fix callers. Because of this, I made temporary shims for all of the old API. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91220

Patch Set 1 #

Patch Set 2 : win #

Patch Set 3 : desktop #

Total comments: 12

Patch Set 4 : fix #

Patch Set 5 : inline #

Patch Set 6 : review #

Total comments: 5

Patch Set 7 : mark #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -197 lines) Patch
M base/process_util.h View 1 2 3 4 5 6 3 chunks +182 lines, -74 lines 0 comments Download
M base/process_util_posix.cc View 1 2 3 4 5 6 7 5 chunks +25 lines, -52 lines 0 comments Download
M base/process_util_win.cc View 1 2 1 chunk +36 lines, -71 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Evan Martin
I'm not sure who a good reviewer for this is, but Mark is probably a ...
9 years, 5 months ago (2011-06-29 21:51:26 UTC) #1
Mark Mentovai
http://codereview.chromium.org/7283019/diff/1004/base/process_util.h File base/process_util.h (right): http://codereview.chromium.org/7283019/diff/1004/base/process_util.h#newcode203 base/process_util.h:203: // that it doesn't leak! And if NULL, what ...
9 years, 5 months ago (2011-06-29 22:11:28 UTC) #2
Evan Martin
I fixed all of your comments except for the pointer ones. http://codereview.chromium.org/7283019/diff/1004/base/process_util.h File base/process_util.h (right): ...
9 years, 5 months ago (2011-06-29 23:09:26 UTC) #3
Mark Mentovai
I do like this change. LGTM with this stuff all fixed. http://codereview.chromium.org/7283019/diff/6001/base/process_util.h File base/process_util.h (right): ...
9 years, 5 months ago (2011-06-30 01:04:04 UTC) #4
brettw
http://codereview.chromium.org/7283019/diff/6001/base/process_util.h File base/process_util.h (right): http://codereview.chromium.org/7283019/diff/6001/base/process_util.h#newcode286 base/process_util.h:286: BASE_API bool LaunchProcess(const string16& cmdline, I prefer string16. I ...
9 years, 5 months ago (2011-06-30 05:36:25 UTC) #5
Evan Martin
Please see "delta from patch set 6" for the comment updates. I'll run through the ...
9 years, 5 months ago (2011-06-30 16:52:32 UTC) #6
Mark Mentovai
9 years, 5 months ago (2011-06-30 16:54:40 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698