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

Issue 864001: Move FileWatcher from src/base/ to src/chrome/browser/ and switch (Closed)

Created:
10 years, 9 months ago by tony
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, chromium-reviews
Visibility:
Public.

Description

Move FileWatcher from src/base/ to src/chrome/browser/ and switch it from using MessageLoop to post tasks to using ChromeThread::PostTask, which is safer. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41560

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove thread id param #

Patch Set 3 : remove pointless test case #

Total comments: 1

Patch Set 4 : fix mac #

Total comments: 1

Patch Set 5 : fix compile, update bug number #

Patch Set 6 : fix tests on mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -109 lines) Patch
M base/base.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M base/base.gypi View 1 2 3 4 4 chunks +0 lines, -22 lines 0 comments Download
A + chrome/browser/file_watcher.h View 1 3 chunks +16 lines, -20 lines 0 comments Download
A + chrome/browser/file_watcher_inotify.cc View 1 2 3 4 6 chunks +6 lines, -10 lines 0 comments Download
A + chrome/browser/file_watcher_mac.cc View 1 2 3 4 5 3 chunks +35 lines, -14 lines 0 comments Download
A + chrome/browser/file_watcher_stub.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
A + chrome/browser/file_watcher_unittest.cc View 1 2 14 chunks +15 lines, -34 lines 0 comments Download
A + chrome/browser/file_watcher_win.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tony
10 years, 9 months ago (2010-03-11 05:57:55 UTC) #1
Paweł Hajdan Jr.
After fixing the minor comments LGTM. http://codereview.chromium.org/864001/diff/1/4 File chrome/browser/file_watcher.h (right): http://codereview.chromium.org/864001/diff/1/4#newcode41 chrome/browser/file_watcher.h:41: ChromeThread::ID thread_id) { ...
10 years, 9 months ago (2010-03-11 07:33:37 UTC) #2
tony
I made the following changes: (1) Drop the thread_id parameter. It was only used on ...
10 years, 9 months ago (2010-03-11 09:25:54 UTC) #3
Paweł Hajdan Jr.
Just one issue on Mac. http://codereview.chromium.org/864001/diff/6001/7005 File chrome/browser/file_watcher_mac.cc (left): http://codereview.chromium.org/864001/diff/6001/7005#oldcode91 chrome/browser/file_watcher_mac.cc:91: DCHECK(MessageLoop::current()->type() == MessageLoop::TYPE_UI); Hmm, ...
10 years, 9 months ago (2010-03-11 20:48:50 UTC) #4
tony
On 2010/03/11 20:48:50, Paweł Hajdan Jr. wrote: > Just one issue on Mac. > > ...
10 years, 9 months ago (2010-03-12 08:59:01 UTC) #5
Paweł Hajdan Jr.
I think this CL misses the change that removes file_watcher_unittest.cc from base.gyp. After fixing the ...
10 years, 9 months ago (2010-03-12 09:32:04 UTC) #6
tony
10 years, 9 months ago (2010-03-15 01:56:33 UTC) #7
On 2010/03/12 09:32:04, Paweł Hajdan Jr. wrote:
> I think this CL misses the change that removes file_watcher_unittest.cc from
> base.gyp.

Fixed.

> http://codereview.chromium.org/864001/diff/10001/11003
> File chrome/browser/file_watcher_inotify.cc (right):
> 
> http://codereview.chromium.org/864001/diff/10001/11003#newcode38
> chrome/browser/file_watcher_inotify.cc:38: // http://crbug.com/
> nit: Did you mean to put an actual bug reference here?

Fixed.

> After fixing the issues LGTM.

Passed on the try bots, so submitting.

Powered by Google App Engine
This is Rietveld 408576698