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

Issue 8635002: Make ObserverListThreadSafe key its observers by PlatformThreadId instead of MessageLoop. (Closed)

Created:
9 years, 1 month ago by Robert Sesek
Modified:
9 years, 1 month ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Make ObserverListThreadSafe key its observers by PlatformThreadId instead of MessageLoop. This fixes a subtle behavior that drops RemoveObserver operations when the current() loop is NULL. Now those operations will always succeed. BUG=104826 TEST=base_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111404

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add a test #

Patch Set 3 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -16 lines) Patch
M base/observer_list_threadsafe.h View 1 2 6 chunks +19 lines, -16 lines 0 comments Download
M base/observer_list_unittest.cc View 1 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Robert Sesek
9 years, 1 month ago (2011-11-22 05:13:37 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h File base/observer_list_threadsafe.h (right): http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h#newcode98 base/observer_list_threadsafe.h:98: observer_lists_[thread_id] = new ObserverListContext(type_); It's not clear to me ...
9 years, 1 month ago (2011-11-22 19:15:23 UTC) #2
Robert Sesek
Thanks for the review. http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h File base/observer_list_threadsafe.h (right): http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h#newcode98 base/observer_list_threadsafe.h:98: observer_lists_[thread_id] = new ObserverListContext(type_); On ...
9 years, 1 month ago (2011-11-22 19:24:39 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h File base/observer_list_threadsafe.h (right): http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h#newcode98 base/observer_list_threadsafe.h:98: observer_lists_[thread_id] = new ObserverListContext(type_); On 2011/11/22 19:24:39, rsesek wrote: ...
9 years, 1 month ago (2011-11-22 19:31:24 UTC) #4
Robert Sesek
http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h File base/observer_list_threadsafe.h (right): http://codereview.chromium.org/8635002/diff/1/base/observer_list_threadsafe.h#newcode98 base/observer_list_threadsafe.h:98: observer_lists_[thread_id] = new ObserverListContext(type_); On 2011/11/22 19:31:24, willchan wrote: ...
9 years, 1 month ago (2011-11-22 20:48:51 UTC) #5
willchan no longer on Chromium
Btw, can I see the actual code that revealed the problem? I'm sort of thinking ...
9 years, 1 month ago (2011-11-22 21:39:09 UTC) #6
Robert Sesek
On 2011/11/22 21:39:09, willchan wrote: > Btw, can I see the actual code that revealed ...
9 years, 1 month ago (2011-11-22 22:20:56 UTC) #7
Wez
On 2011/11/22 22:20:56, rsesek wrote: > On 2011/11/22 21:39:09, willchan wrote: > > Btw, can ...
9 years, 1 month ago (2011-11-22 22:38:12 UTC) #8
willchan no longer on Chromium
On Tue, Nov 22, 2011 at 2:20 PM, <rsesek@chromium.org> wrote: > On 2011/11/22 21:39:09, willchan ...
9 years, 1 month ago (2011-11-22 22:39:37 UTC) #9
willchan no longer on Chromium
On 2011/11/22 22:39:37, willchan wrote: > On Tue, Nov 22, 2011 at 2:20 PM, <mailto:rsesek@chromium.org> ...
9 years, 1 month ago (2011-11-22 22:46:22 UTC) #10
Robert Sesek
On 2011/11/22 22:39:37, willchan wrote: > On Tue, Nov 22, 2011 at 2:20 PM, <mailto:rsesek@chromium.org> ...
9 years, 1 month ago (2011-11-22 22:51:13 UTC) #11
Robert Sesek
On 2011/11/22 22:51:13, rsesek wrote: > long since clobbered). Some things use a MockURLRequestContext which ...
9 years, 1 month ago (2011-11-22 22:54:26 UTC) #12
willchan no longer on Chromium
On Tue, Nov 22, 2011 at 2:51 PM, <rsesek@chromium.org> wrote: > On 2011/11/22 22:39:37, willchan ...
9 years, 1 month ago (2011-11-22 23:00:14 UTC) #13
Robert Sesek
On 2011/11/22 23:00:14, willchan wrote: > On Tue, Nov 22, 2011 at 2:51 PM, <mailto:rsesek@chromium.org> ...
9 years, 1 month ago (2011-11-22 23:08:53 UTC) #14
willchan no longer on Chromium
On Tue, Nov 22, 2011 at 3:08 PM, <rsesek@chromium.org> wrote: > On 2011/11/22 23:00:14, willchan ...
9 years, 1 month ago (2011-11-22 23:11:26 UTC) #15
Scott Hess - ex-Googler
On 2011/11/22 23:08:53, rsesek wrote: > I'm off for today, but I've added a comment ...
9 years, 1 month ago (2011-11-23 17:31:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/8635002/19001
9 years, 1 month ago (2011-11-23 17:32:23 UTC) #17
Robert Sesek
On 2011/11/23 17:31:16, shess wrote: > On 2011/11/22 23:08:53, rsesek wrote: > > I'm off ...
9 years, 1 month ago (2011-11-23 17:32:55 UTC) #18
Scott Hess - ex-Googler
BTW, I find myself wondering if another alternative would be to add a destruction observer ...
9 years, 1 month ago (2011-11-23 17:35:04 UTC) #19
Robert Sesek
On 2011/11/23 17:35:04, shess wrote: > BTW, I find myself wondering if another alternative would ...
9 years, 1 month ago (2011-11-23 17:43:38 UTC) #20
commit-bot: I haz the power
Try job failure for 8635002-19001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
9 years, 1 month ago (2011-11-23 18:47:48 UTC) #21
Scott Hess - ex-Googler
On 2011/11/23 18:47:48, I haz the power (commit-bot) wrote: > Try job failure for 8635002-19001 ...
9 years, 1 month ago (2011-11-23 18:56:50 UTC) #22
Scott Hess - ex-Googler
On 2011/11/23 18:56:50, shess wrote: > On 2011/11/23 18:47:48, I haz the power (commit-bot) wrote: ...
9 years, 1 month ago (2011-11-23 18:58:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/8635002/19001
9 years, 1 month ago (2011-11-23 19:01:00 UTC) #24
commit-bot: I haz the power
9 years, 1 month ago (2011-11-23 20:34:05 UTC) #25
Change committed as 111404

Powered by Google App Engine
This is Rietveld 408576698