DescriptionRemove a race around NetworkChangeNotifier::test_notifications_only_
There is a possible race in which
NetworkChangeNotifier::test_notifications_only_ might be read on one
thread while being written on another. This CL fixes that by making
the variable static and only allowing writes to it before the
NetworkChangeNotifier is created (before other things might try to
read it).
BUG=454652
Committed: https://crrev.com/e160f6be485deabcb4725d7e3623ae18ef5aee48
Cr-Commit-Position: refs/heads/master@{#341354}
Patch Set 1 #Patch Set 2 : comments #Patch Set 3 : Remove TSAN suppression #Patch Set 4 : Fix other uses of SetTestNotificationsOnly #Patch Set 5 : Fix unit test #Patch Set 6 : Possible iOS fix #Messages
Total messages: 21 (4 generated)
|