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

Issue 99057: Add DirectoryWatcher implementation for Mac. (Closed)

Created:
11 years, 8 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add DirectoryWatcher implementation for Mac. This uses FSEvents and supports both recursive and non-recursive modes. TEST=Make sure that tests matching DirectoryWatcherTest.* from base_unittests pass on Mac. http://crbug.com/10967 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14977

Patch Set 1 #

Total comments: 7

Patch Set 2 : fixes #

Total comments: 1

Patch Set 3 : comment fix #

Total comments: 1

Patch Set 4 : cfrelease things #

Total comments: 3

Patch Set 5 : scoped_cftyperef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -74 lines) Patch
M base/base.gyp View 1 2 chunks +2 lines, -5 lines 0 comments Download
A base/directory_watcher_mac.cc View 1 2 3 4 1 chunk +121 lines, -0 lines 0 comments Download
M base/directory_watcher_unittest.cc View 1 2 8 chunks +109 lines, -69 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Paweł Hajdan Jr.
Please review: pink: directory_watcher_mac.cc (this is one of my first Mac-specific files, so please review ...
11 years, 8 months ago (2009-04-27 13:43:59 UTC) #1
Mark Mentovai
Not a thorough review, but the .gyp LG. http://codereview.chromium.org/99057/diff/1/2 File base/base.gyp (right): http://codereview.chromium.org/99057/diff/1/2#newcode645 Line 645: ...
11 years, 8 months ago (2009-04-27 13:52:57 UTC) #2
pink (ping after 24hrs)
http://codereview.chromium.org/99057/diff/1/3 File base/directory_watcher_mac.cc (right): http://codereview.chromium.org/99057/diff/1/3#newcode16 Line 16: const CFAbsoluteTime kFSEventsLatencySeconds = 0.3; On 2009/04/27 13:52:57, ...
11 years, 8 months ago (2009-04-27 14:40:10 UTC) #3
Paweł Hajdan Jr.
On 2009/04/27 13:52:57, Mark Mentovai wrote: > Not a thorough review, but the .gyp LG. ...
11 years, 8 months ago (2009-04-27 18:17:50 UTC) #4
Evan Martin
Test changes LGTM, though I am scared it won't work on Windows. I seem to ...
11 years, 8 months ago (2009-04-27 21:36:12 UTC) #5
Paweł Hajdan Jr.
pink: ping On 2009/04/27 21:36:12, Evan Martin wrote: > Test changes LGTM, though I am ...
11 years, 7 months ago (2009-04-29 13:28:31 UTC) #6
pink (ping after 24hrs)
http://codereview.chromium.org/99057/diff/12/14 File base/directory_watcher_mac.cc (right): http://codereview.chromium.org/99057/diff/12/14#newcode93 Line 93: CFArrayCreate(NULL, reinterpret_cast<const void**>(&cf_path), 1, NULL); i don't think ...
11 years, 7 months ago (2009-04-29 19:34:35 UTC) #7
Paweł Hajdan Jr.
After this patch things should be properly released. Tested on the trybots. Please look. pink, ...
11 years, 7 months ago (2009-04-30 09:03:04 UTC) #8
pink (ping after 24hrs)
http://codereview.chromium.org/99057/diff/18/20 File base/directory_watcher_mac.cc (right): http://codereview.chromium.org/99057/diff/18/20#newcode90 Line 90: CFStringRef cf_path = CFStringCreateWithCString(NULL, path.value().c_str(), i'd prefer you ...
11 years, 7 months ago (2009-04-30 13:34:36 UTC) #9
Paweł Hajdan Jr.
Done. I had to use a temporary variable because otherwise gcc complained that unary & ...
11 years, 7 months ago (2009-04-30 15:44:47 UTC) #10
pink (ping after 24hrs)
11 years, 7 months ago (2009-04-30 16:01:44 UTC) #11
lgtm

Powered by Google App Engine
This is Rietveld 408576698