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

Issue 7655028: Mirror Windows implementation of CancelOnMessageLoopThread. (Closed)

Created:
9 years, 4 months ago by dominich
Modified:
9 years, 4 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Mirror Windows implementation of CancelOnMessageLoopThread. Before this change, there was a code path where the FilePathWatcher could have been canceled but the delegate_ was not set to NULL. At exit, the destructor would then call Cancel() which would try to post a task to the message loop. With this change, the delegate is correctly set to NULL when the MessageLoop is destroyed even if the FilePathWatcher itself has been canceled. This allows Cancel() from the destructor to do the right thing and not call into the MessageLoop. This implementation matches the Windows version which does not crash. BUG=83190 TEST=FilePathWatcherTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97248

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -9 lines) Patch
M base/files/file_path_watcher_linux.cc View 1 chunk +11 lines, -9 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dominich
This should fix a fairly prevalent crasher by correctly setting the internal state when the ...
9 years, 4 months ago (2011-08-17 19:19:55 UTC) #1
dmac
On 2011/08/17 19:19:55, dominich wrote: > This should fix a fairly prevalent crasher by correctly ...
9 years, 4 months ago (2011-08-17 19:28:15 UTC) #2
dominich
Sorry, added much more detail. The callstack in the crash is pretty clear too.
9 years, 4 months ago (2011-08-17 19:33:07 UTC) #3
dmac
On 2011/08/17 19:33:07, dominich wrote: > Sorry, added much more detail. The callstack in the ...
9 years, 4 months ago (2011-08-17 19:36:24 UTC) #4
commit-bot: I haz the power
9 years, 4 months ago (2011-08-18 00:26:26 UTC) #5
Change committed as 97248

Powered by Google App Engine
This is Rietveld 408576698