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

Issue 2514113003: Revert of Require FilePathWatcher destructor to be called in sequence with Watch(). (Closed)

Created:
4 years, 1 month ago by tommycli
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Require FilePathWatcher destructor to be called in sequence with Watch(). (patchset #10 id:180001 of https://codereview.chromium.org/2438913003/ ) Reason for revert: I'm sorry, but I'm pretty confident that this patch is causing some trybot flakes. See: https://bugs.chromium.org/p/chromium/issues/detail?id=665511 Flakes link: https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyVAsSBUZsYWtlIklQaWNhc2FEYXRhUHJvdmlkZXJOb0RhdGFiYXNlR2V0QWxidW1zSW1hZ2VzVGVzdC5Ob0RhdGFiYXNlR2V0QWxidW1zSW1hZ2VzDA Original issue's description: > Require FilePathWatcher destructor to be called in sequence with Watch(). > > file_path_watcher_win.cc and file_path_watcher_kqueue.cc need to do > some cleanup on the sequence from which Watch() is called. They use > destruction observers to do this cleanup when the MessageLoop from > which Watch() is called is destroyed (after that, it is too late to > post tasks to the MessageLoop sequence). > > With this CL, the FilePathWatcher destructor must be called on the > sequence from which Watch() is called. That means that will be able > to move the work done in MessageLoop destruction observers to the > FilePathWatcher destructor. Getting rid of destruction observers in > FilePathWatcher is important because they are not supported in > TaskScheduler. > > TBR=scottbyer@chromium.org > BUG=650723 > > Committed: https://crrev.com/1ce19c6494518bcc1cc1fd4b2bfc73e6f6e41fa0 > Cr-Commit-Position: refs/heads/master@{#431921} TBR=scottbyer@chromium.org,dcheng@chromium.org,thestig@chromium.org,fdoray@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=650723

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -110 lines) Patch
M base/files/file_path_watcher.h View 4 chunks +1 line, -6 lines 0 comments Download
M base/files/file_path_watcher.cc View 2 chunks +1 line, -2 lines 0 comments Download
M base/files/file_path_watcher_linux.cc View 1 chunk +0 lines, -1 line 0 comments Download
M base/files/file_path_watcher_mac.cc View 1 chunk +0 lines, -1 line 0 comments Download
M base/files/file_path_watcher_stub.cc View 1 chunk +0 lines, -1 line 0 comments Download
M base/files/file_path_watcher_unittest.cc View 32 chunks +69 lines, -26 lines 0 comments Download
M base/files/file_path_watcher_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/media_galleries/fileapi/file_path_watcher_util.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/file_path_watcher_util.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/iapps_data_provider.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/itunes_file_util_unittest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/picasa_data_provider.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/service_process_util.h View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/common/service_process_util_posix.h View 4 chunks +7 lines, -8 lines 0 comments Download
M chrome/common/service_process_util_posix.cc View 5 chunks +23 lines, -25 lines 0 comments Download
M chrome/common/service_process_util_win.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/service/service_process.cc View 2 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
tommycli
Created Revert of Require FilePathWatcher destructor to be called in sequence with Watch().
4 years, 1 month ago (2016-11-19 00:27:54 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2514113003/1
4 years, 1 month ago (2016-11-19 00:28:30 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/308798)
4 years, 1 month ago (2016-11-19 00:50:07 UTC) #5
fdoray
lgtm
4 years, 1 month ago (2016-11-21 15:39:53 UTC) #6
Lei Zhang
This didn't actually land and Tommy won't be back until tomorrow.
4 years, 1 month ago (2016-11-21 19:07:54 UTC) #7
fdoray
On 2016/11/21 19:07:54, Lei Zhang (Mostly OOO) wrote: > This didn't actually land and Tommy ...
4 years, 1 month ago (2016-11-21 19:16:17 UTC) #8
Lei Zhang
4 years, 1 month ago (2016-11-21 19:25:30 UTC) #9
On 2016/11/21 19:16:17, fdoray wrote:
> On 2016/11/21 19:07:54, Lei Zhang (Mostly OOO) wrote:
> > This didn't actually land and Tommy won't be back until tomorrow.
> 
> PicasaDataProviderNoDatabaseGetAlbumsImagesTest.NoDatabaseGetAlbumsImages
fails
> when PicasaDataProvider is destroyed before OnTempDirWatchStarted() is
invoked.
> When that happens, the FilePathWatcher is destroyed on the media sequence
> instead of on the FILE thread.
> 
> This CL fixes the problem https://codereview.chromium.org/2518053002 Would it
be
> possible to land it directly instead of reverting the CL that caused the
problem
> https://codereview.chromium.org/2514113003/ and re-landing it with the fix
> applied?

Sure. I'll take a look...

Powered by Google App Engine
This is Rietveld 408576698