DescriptionObserve network changes from network thread in DomainReliabilityMonitor.
From observer_list_threadsafe.h:
// If the observer to be removed is in the list, RemoveObserver MUST
// be called from the same thread which called AddObserver.
This rule is currently not respected by DomainReliabilityMonitor, which
prevents the addition of a DCHECK.
With this CL, the rule is respected and |last_network_change_time_|
is read/written from the same thread (no data race).
BUG=
Review-Url: https://codereview.chromium.org/2627523003
Cr-Commit-Position: refs/heads/master@{#443283}
Committed: https://chromium.googlesource.com/chromium/src/+/b0002b84acf5c71a6c257a068fb56d588e5e9d47
Patch Set 1 #
Messages
Total messages: 14 (10 generated)
|