DescriptionRemove unused lock, add verification of intended usage.
There used to be locking in this class, but many small changes had contributed to removing all use of the lock. The lock does not appear to actually be needed, as long as the class continues to be used as it currently is used, with the deferred initialization via RegisterExtensionService always happening before the providers map owned by the object is iterated over.
This change removes the |lock_| member and adds debug-only code that verifies that this is how the class continues to be used.
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181930
Patch Set 1 #Patch Set 2 : Proposal #Patch Set 3 : Remove lock, instead add debug-only verification of intended usage. #Patch Set 4 : Forgot that DCHECK-enabled != NDEBUG not defined. #
Messages
Total messages: 16 (0 generated)
|