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

Issue 6660001: Getting service process on Mac to handle having things moved/changed underneath it. (Closed)

Created:
9 years, 9 months ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Getting service process on Mac to handle having things moved/changed underneath it. BUG=74983 TEST=See http://code.google.com/p/chromium/issues/detail?id=74983#c16 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78967

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixed up phajdan's comments, got things working properly #

Total comments: 63

Patch Set 3 : Move over to FilePathWatcher #

Total comments: 66

Patch Set 4 : Revised based on comments #

Patch Set 5 : missed a comment #

Patch Set 6 : fix up bad instance reset #

Total comments: 16

Patch Set 7 : Fix up last of the nits #

Patch Set 8 : polishing the chrome #

Unified diffs Side-by-side diffs Delta from patch set Stats (+876 lines, -109 lines) Patch
M chrome/chrome_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/common/launchd_mac.h View 1 2 3 4 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/common/launchd_mac.mm View 1 2 3 4 5 6 1 chunk +171 lines, -0 lines 0 comments Download
M chrome/common/service_process_util.h View 1 2 5 chunks +3 lines, -9 lines 0 comments Download
M chrome/common/service_process_util.cc View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M chrome/common/service_process_util_mac.mm View 1 2 3 4 5 6 9 chunks +197 lines, -52 lines 0 comments Download
M chrome/common/service_process_util_posix.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M chrome/common/service_process_util_posix.cc View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/common/service_process_util_unittest.cc View 1 2 3 4 5 6 7 8 chunks +347 lines, -22 lines 0 comments Download
M chrome/common/service_process_util_win.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/service/service_main.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/service/service_process.h View 1 2 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/service/service_process.cc View 1 2 5 chunks +14 lines, -6 lines 0 comments Download
M chrome/service/service_process_unittest.cc View 1 2 5 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dmac
Work in progress (should have it done today). Just wanted to let you guys know ...
9 years, 9 months ago (2011-03-09 18:05:44 UTC) #1
Paweł Hajdan Jr.
Drive-by with testing comments. Please let me do another review after fixing those. http://codereview.chromium.org/6660001/diff/1/base/file_path_component_watcher_unittest.cc File ...
9 years, 9 months ago (2011-03-10 16:02:04 UTC) #2
dmac
Thanks Pawel, I think I addressed all your comments. On 2011/03/10 16:02:04, Paweł Hajdan Jr. ...
9 years, 9 months ago (2011-03-11 06:10:52 UTC) #3
dmac
Scott, Sanjeev: I think this is ready for review. Mark/TVL: I would appreciate you guys ...
9 years, 9 months ago (2011-03-11 06:13:09 UTC) #4
sanjeevr
Thanks again for doing this. The logic looks fine to me. I have a few ...
9 years, 9 months ago (2011-03-11 08:26:42 UTC) #5
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM, thanks.
9 years, 9 months ago (2011-03-11 08:33:01 UTC) #6
TVL
http://codereview.chromium.org/6660001/diff/8001/base/file_path_component_watcher.h File base/file_path_component_watcher.h (right): http://codereview.chromium.org/6660001/diff/8001/base/file_path_component_watcher.h#newcode5 base/file_path_component_watcher.h:5: // This module provides a way to monitor a ...
9 years, 9 months ago (2011-03-11 14:03:54 UTC) #7
TVL
Might also want to check with brett on putting this in base vs. some place ...
9 years, 9 months ago (2011-03-11 14:05:37 UTC) #8
brettw
Are you imminently planning on implementing the file watcher on the other platforms? If not, ...
9 years, 9 months ago (2011-03-11 18:31:57 UTC) #9
dmaclach1
Actually having looked at FilePathWatcher, and realizing what it is being used for, I am ...
9 years, 9 months ago (2011-03-11 19:25:11 UTC) #10
Mark Mentovai
http://codereview.chromium.org/6660001/diff/8001/base/base.gyp File base/base.gyp (right): http://codereview.chromium.org/6660001/diff/8001/base/base.gyp#newcode87 base/base.gyp:87: 'file_path_component_watcher_unittest.cc', I agree with what Brett said about this. ...
9 years, 9 months ago (2011-03-11 20:13:52 UTC) #11
Scott Byer
http://codereview.chromium.org/6660001/diff/8001/base/file_path_component_watcher_mac.cc File base/file_path_component_watcher_mac.cc (right): http://codereview.chromium.org/6660001/diff/8001/base/file_path_component_watcher_mac.cc#newcode26 base/file_path_component_watcher_mac.cc:26: virtual ~FilePathComponentWatcherImpl() {} What about closing the file descriptors ...
9 years, 9 months ago (2011-03-11 20:25:02 UTC) #12
dmac
OK, I think I've dealt with all the issues brought up above. I have moved ...
9 years, 9 months ago (2011-03-21 15:50:57 UTC) #13
Mark Mentovai
http://codereview.chromium.org/6660001/diff/18004/chrome/chrome_common.gypi File chrome/chrome_common.gypi (right): http://codereview.chromium.org/6660001/diff/18004/chrome/chrome_common.gypi#newcode201 chrome/chrome_common.gypi:201: 'common/launchd_mac.h', Sort: h < mm http://codereview.chromium.org/6660001/diff/18004/chrome/common/launchd_mac.h File chrome/common/launchd_mac.h (right): ...
9 years, 9 months ago (2011-03-21 16:50:49 UTC) #14
dmac
I think I caught all Mark's nits. http://codereview.chromium.org/6660001/diff/18004/chrome/chrome_common.gypi File chrome/chrome_common.gypi (right): http://codereview.chromium.org/6660001/diff/18004/chrome/chrome_common.gypi#newcode201 chrome/chrome_common.gypi:201: 'common/launchd_mac.h', On ...
9 years, 9 months ago (2011-03-21 22:59:19 UTC) #15
Scott Byer
The code LGTM from a launchd and plist perspective (you should get at least one ...
9 years, 9 months ago (2011-03-21 23:44:57 UTC) #16
Mark Mentovai
LGTM. I really like the test menu in your TEST= line. All of the remaining ...
9 years, 9 months ago (2011-03-22 00:48:24 UTC) #17
dmac
http://codereview.chromium.org/6660001/diff/26005/chrome/common/launchd_mac.mm File chrome/common/launchd_mac.mm (right): http://codereview.chromium.org/6660001/diff/26005/chrome/common/launchd_mac.mm#newcode60 chrome/common/launchd_mac.mm:60: static_cast<int>(NSUserDomainMask), foundation_value_changed); On 2011/03/22 00:48:24, Mark Mentovai wrote: > ...
9 years, 9 months ago (2011-03-22 03:13:32 UTC) #18
Mark Mentovai
9 years, 9 months ago (2011-03-22 03:21:05 UTC) #19
LGTM again for what it’s worth.

Powered by Google App Engine
This is Rietveld 408576698