DescriptionFix race in DataReductionProxyService read/write.
CreateNetworkDelegate is called on the IO thread, but SetDataReductionProxyService
is called on the UI thread. There is the possibility for a race to occur in
reading/writing the value of the WeakPtr; we can avoid it by passing a callback
to DataReductionProxyUsageStats (instead of the WeakPtr), since we are guaranteed
that the callback is called on the UI thread.
BUG=460876
Committed: https://crrev.com/5f46d2c4e1da91e38d197e04677e68e12a7eda77
Cr-Commit-Position: refs/heads/master@{#320822}
Patch Set 1 #
Total comments: 4
Patch Set 2 : bengr CR comment #Messages
Total messages: 9 (2 generated)
|