diff options
author | jeremyim <jeremyim@chromium.org> | 2015-03-16 16:21:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-16 23:22:01 +0000 |
commit | 5f46d2c4e1da91e38d197e04677e68e12a7eda77 (patch) | |
tree | c77bf7ed578875b608a160114db227eec8ce19f0 /chrome/browser/bookmarks/enhanced_bookmarks_features.cc | |
parent | 13185caf5c14377166ef88f467570c34e37af81b (diff) | |
download | chromium_src-5f46d2c4e1da91e38d197e04677e68e12a7eda77.zip chromium_src-5f46d2c4e1da91e38d197e04677e68e12a7eda77.tar.gz chromium_src-5f46d2c4e1da91e38d197e04677e68e12a7eda77.tar.bz2 |
Fix 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
Review URL: https://codereview.chromium.org/1012923003
Cr-Commit-Position: refs/heads/master@{#320822}
Diffstat (limited to 'chrome/browser/bookmarks/enhanced_bookmarks_features.cc')
0 files changed, 0 insertions, 0 deletions