Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Issue 2546023002: Initialize data reduction proxy bypass stats on IO thread (Closed)

Created:
4 years ago by tbansal1
Modified:
4 years ago
Reviewers:
RyanSturm
CC:
chromium-reviews, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize data reduction proxy bypass stats on IO thread Initialize data reduction proxy (DRP) bypass stats on IO thread, and register as a network change notifier on the IO thread. This ensures that network change notifier does not notify DRP bypass stats on IO thread after DRP bypass stats has been destroyed. This prevents the use after null crash. Also, add thread checker to some of the other DRP classes. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=669929 Committed: https://crrev.com/7877436e368495c0ce10eb32a65748079936be92 Cr-Commit-Position: refs/heads/master@{#436101}

Patch Set 1 : More #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -1 line) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h View 2 chunks +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h View 3 chunks +6 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc View 9 chunks +18 lines, -1 line 2 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h View 2 chunks +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc View 4 chunks +10 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 2 chunks +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 12 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
tbansal1
ryansturm: ptal. Thanks.
4 years ago (2016-12-02 17:47:31 UTC) #11
RyanSturm
On 2016/12/02 17:47:31, tbansal1 wrote: > ryansturm: ptal. Thanks. I have a copy of this, ...
4 years ago (2016-12-02 21:24:18 UTC) #12
RyanSturm
On 2016/12/02 21:24:18, Ryan Sturm wrote: > On 2016/12/02 17:47:31, tbansal1 wrote: > > ryansturm: ...
4 years ago (2016-12-02 21:24:49 UTC) #13
RyanSturm
On 2016/12/02 21:24:49, Ryan Sturm wrote: > On 2016/12/02 21:24:18, Ryan Sturm wrote: > > ...
4 years ago (2016-12-02 21:25:12 UTC) #14
RyanSturm
lgtm % comment https://codereview.chromium.org/2546023002/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc (right): https://codereview.chromium.org/2546023002/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc#newcode142 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc:142: NetworkChangeNotifier::RemoveNetworkChangeObserver(this); So if the IO thread ...
4 years ago (2016-12-02 21:43:09 UTC) #15
tbansal1
https://codereview.chromium.org/2546023002/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc (right): https://codereview.chromium.org/2546023002/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc#newcode142 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc:142: NetworkChangeNotifier::RemoveNetworkChangeObserver(this); On 2016/12/02 21:43:09, Ryan Sturm wrote: > So ...
4 years ago (2016-12-02 23:50:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2546023002/40001
4 years ago (2016-12-02 23:59:51 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years ago (2016-12-03 00:39:48 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-03 00:43:07 UTC) #23
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7877436e368495c0ce10eb32a65748079936be92
Cr-Commit-Position: refs/heads/master@{#436101}

Powered by Google App Engine
This is Rietveld 408576698