Chromium Code Reviews
DescriptionMakes GetComponentExtensionResourceManager() thread-safe.
As is noted in a bug, this method can be called on various thread.
Actually, the instance itself holds simple mapping and its method
can be const, therefore it's safer to early-initialize and the
method just returns the already initialized object.
Also this should be const and the method does not change its
internal state, therefore it's thread safe.
BUG=445747
R=yoz@chromium.org
TEST=no functional changes / build succeeds
Committed: https://crrev.com/ee458c9161f034acde693bc6823d18b6845472c3
Cr-Commit-Position: refs/heads/master@{#310029}
Patch Set 1 #Patch Set 2 : fix #
Total comments: 2
Messages
Total messages: 8 (1 generated)
|