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

Issue 6349029: Get service processes working on Mac and Linux. (Closed)

Created:
9 years, 10 months ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Get service processes working on Mac and Linux. Service processes will now launch, and attach to ipc channels. BUG=NONE TEST=BUILD Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73425

Patch Set 1 #

Patch Set 2 : removed some unnecssary nsautorelease pools #

Patch Set 3 : Some code cleanup #

Total comments: 1

Patch Set 4 : fix up linux build #

Total comments: 8

Patch Set 5 : Fix up scottbyers comments #

Patch Set 6 : fix up small typo in comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -191 lines) Patch
M chrome/browser/service/service_process_control.cc View 1 2 3 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/service/service_process_control_browsertest.cc View 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/common/service_process_util.h View 1 2 3 4 4 chunks +13 lines, -10 lines 0 comments Download
M chrome/common/service_process_util.cc View 1 2 3 4 8 chunks +62 lines, -51 lines 0 comments Download
M chrome/common/service_process_util_posix.cc View 1 2 3 4 5 3 chunks +187 lines, -33 lines 0 comments Download
M chrome/common/service_process_util_unittest.cc View 1 2 3 4 2 chunks +112 lines, -28 lines 0 comments Download
M chrome/common/service_process_util_win.cc View 1 2 3 4 4 chunks +9 lines, -12 lines 0 comments Download
M chrome/service/service_ipc_server.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/service_main.cc View 1 2 3 4 1 chunk +19 lines, -18 lines 0 comments Download
M chrome/service/service_process.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/service/service_process_prefs.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/service_process_prefs.cc View 1 chunk +8 lines, -8 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_win.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
dmac
This should get service processes running on Mac and Linux. I have beefed up the ...
9 years, 10 months ago (2011-02-01 22:42:52 UTC) #1
Scott Byer
http://codereview.chromium.org/6349029/diff/4001/chrome/common/service_process_util_unittest.cc File chrome/common/service_process_util_unittest.cc (right): http://codereview.chromium.org/6349029/diff/4001/chrome/common/service_process_util_unittest.cc#newcode42 chrome/common/service_process_util_unittest.cc:42: MessageLoop* IOMessageLoop() { return io_thread_.message_loop(); }; nit: lint error ...
9 years, 10 months ago (2011-02-02 00:12:37 UTC) #2
dmac
http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_process_util.cc File chrome/common/service_process_util.cc (right): http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_process_util.cc#newcode129 chrome/common/service_process_util.cc:129: scoped_ptr<base::SharedMemory> shared_mem_service_data; On 2011/02/02 00:12:38, Scott Byer wrote: > ...
9 years, 10 months ago (2011-02-02 00:56:24 UTC) #3
Scott Byer
9 years, 10 months ago (2011-02-02 01:12:19 UTC) #4
LGTM.

On 2011/02/02 00:56:24, dmac wrote:
>
http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_proces...
> File chrome/common/service_process_util.cc (right):
> 
>
http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_proces...
> chrome/common/service_process_util.cc:129: scoped_ptr<base::SharedMemory>
> shared_mem_service_data;
> On 2011/02/02 00:12:38, Scott Byer wrote:
> > Did this function need to get moved? It's not like the functions are in
header
> > declaration order before or after the move, and it would help minimize
> > differences back in the old location.
> 
> Yes, I needed to take it out of the anonymous namespace that it was in.
> 
>
http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_proces...
> File chrome/common/service_process_util_posix.cc (right):
> 
>
http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_proces...
> chrome/common/service_process_util_posix.cc:32: // Attempts to take a lock
named
> |name|. If |waiting| then is will
> On 2011/02/02 00:12:38, Scott Byer wrote:
> > nit: then this will
> 
> Done.
> 
>
http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_proces...
> chrome/common/service_process_util_posix.cc:96: if ((length ==
> sizeof(kShutDownMessage)) && (buffer == kShutDownMessage)) {
> On 2011/02/02 00:12:38, Scott Byer wrote:
> > Should be sizeof(buffer) to match the write side.
> 
> Done.
> 
>
http://codereview.chromium.org/6349029/diff/2005/chrome/common/service_proces...
> chrome/common/service_process_util_posix.cc:241: return running_lock.get() ==
> NULL;
> On 2011/02/02 00:12:38, Scott Byer wrote:
> > Shouldn't this just call CheckServiceProcessReady()?
> 
> Got rid of it instead.

Powered by Google App Engine
This is Rietveld 408576698