DescriptionFix bug in ObserverListThreadsafe::RemoveObserver
Like ObserverList, ObserverListThreadSafe::RemoveObserver should do
nothing if the observer isn't in the list. Instead, it causes weird
bugs if the list has 0 or 1 existing elements.
Add comments clarifying semantics of AddObserver/RemoveObserver.
Change AddObserver to do nothing in release mode if it tries to add an existing observer.
BUG=84922
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87944
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|