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

Issue 1006583002: Reset unreachable data reduction proxy message when data savings is toggled. (Closed)

Created:
5 years, 9 months ago by Not at Google. Contact bengr
Modified:
5 years, 7 months ago
Reviewers:
bengr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reset data reduction proxy state when data savings is switched off. Reset unreachable data reduction proxy message when data savings is switched off. Clear counts of successful requests through proxy and net errors. Reset bad proxy list so that the data reduction proxies are retried when Data Saver is turned back on. BUG=436326, 438694 Committed: https://crrev.com/5bb90a929d8242a610db5a3dd741a02bb3d10590 Cr-Commit-Position: refs/heads/master@{#330157}

Patch Set 1 #

Patch Set 2 : Add tests #

Patch Set 3 : Use TestingPrefServiceSimple return type. #

Patch Set 4 : Shutdown on UI thread. #

Total comments: 7

Patch Set 5 : Sync to head #

Patch Set 6 : Reimplemented for new code pattern. #

Total comments: 4

Patch Set 7 : Reset bypass state #

Total comments: 6

Patch Set 8 : Added test. Reused context in io_data. #

Patch Set 9 : Sync to head #

Total comments: 16

Patch Set 10 : Addressed comments #

Patch Set 11 : Whitespace #

Patch Set 12 : Added comment with bug to rename SetProxyPrefs. #

Patch Set 13 : Use vector #

Patch Set 14 : Vector initialization. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -29 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -11 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -15 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (5 generated)
Not at Google. Contact bengr
bengr: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats_unittest.cc
5 years, 9 months ago (2015-03-12 20:33:40 UTC) #2
Not at Google. Contact bengr
sclittle: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats_unittest.cc
5 years, 9 months ago (2015-03-12 21:52:39 UTC) #4
sclittle
https://codereview.chromium.org/1006583002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/1006583002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode250 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:250: void DataReductionProxyUsageStats::OnDataReductionProxyEnabledChanged() { DRPSettings already listens to pref changes, ...
5 years, 9 months ago (2015-03-13 01:22:47 UTC) #5
Not at Google. Contact bengr
https://codereview.chromium.org/1006583002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/1006583002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode250 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:250: void DataReductionProxyUsageStats::OnDataReductionProxyEnabledChanged() { On 2015/03/13 01:22:46, sclittle wrote: > ...
5 years, 9 months ago (2015-03-13 17:02:09 UTC) #6
Not at Google. Contact bengr
https://codereview.chromium.org/1006583002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/1006583002/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc#newcode255 components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc:255: ClearRequestCountsAndNotifyFromUIThread(); On 2015/03/13 17:02:08, kundaji wrote: > On 2015/03/13 ...
5 years, 9 months ago (2015-03-13 17:31:49 UTC) #7
Not at Google. Contact bengr
5 years, 9 months ago (2015-03-16 16:44:12 UTC) #9
bengr
On 2015/03/16 16:44:12, kundaji wrote: I think we should do the following: 1) Write a ...
5 years, 9 months ago (2015-03-16 21:50:38 UTC) #10
Not at Google. Contact bengr
Code structure has changed since last comment. Piggy backing off of pref value change in ...
5 years, 8 months ago (2015-04-24 21:20:58 UTC) #11
bengr
Coordinate so that all other state that should be reset is reset. https://codereview.chromium.org/1006583002/diff/90001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h ...
5 years, 8 months ago (2015-04-24 23:42:05 UTC) #12
bengr
lgtm, modulo the nits.
5 years, 8 months ago (2015-04-24 23:42:24 UTC) #13
Not at Google. Contact bengr
Implemented resetting bypass state as well. PTAL. https://codereview.chromium.org/1006583002/diff/90001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h (right): https://codereview.chromium.org/1006583002/diff/90001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h#newcode83 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h:83: // Clear ...
5 years, 7 months ago (2015-05-05 21:08:24 UTC) #14
bengr
https://codereview.chromium.org/1006583002/diff/110001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1006583002/diff/110001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode222 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:222: const scoped_refptr<net::URLRequestContextGetter>& context_getter) { Why does this need to ...
5 years, 7 months ago (2015-05-07 14:42:34 UTC) #15
bengr
Also, fix the typo in the CL description.
5 years, 7 months ago (2015-05-07 14:43:02 UTC) #16
Not at Google. Contact bengr
https://codereview.chromium.org/1006583002/diff/110001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1006583002/diff/110001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode222 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:222: const scoped_refptr<net::URLRequestContextGetter>& context_getter) { On 2015/05/07 14:42:34, bengr wrote: ...
5 years, 7 months ago (2015-05-08 19:20:42 UTC) #17
bengr
https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h (right): https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h#newcode82 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h:82: // Clears request counts unconditionally. Add a blank line ...
5 years, 7 months ago (2015-05-13 17:48:51 UTC) #18
Not at Google. Contact bengr
https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h (right): https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h#newcode82 components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h:82: // Clears request counts unconditionally. On 2015/05/13 17:48:50, bengr ...
5 years, 7 months ago (2015-05-13 20:09:16 UTC) #19
bengr
lgtm https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode218 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:218: void DataReductionProxyIOData::SetProxyPrefs(bool enabled, On 2015/05/13 20:09:16, kundaji wrote: ...
5 years, 7 months ago (2015-05-14 18:32:37 UTC) #20
Not at Google. Contact bengr
https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1006583002/diff/150001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode218 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:218: void DataReductionProxyIOData::SetProxyPrefs(bool enabled, On 2015/05/14 18:32:37, bengr wrote: > ...
5 years, 7 months ago (2015-05-14 19:59:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006583002/250001
5 years, 7 months ago (2015-05-15 18:57:34 UTC) #24
commit-bot: I haz the power
Committed patchset #14 (id:250001)
5 years, 7 months ago (2015-05-15 19:08:31 UTC) #25
commit-bot: I haz the power
5 years, 7 months ago (2015-05-15 19:09:37 UTC) #26
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/5bb90a929d8242a610db5a3dd741a02bb3d10590
Cr-Commit-Position: refs/heads/master@{#330157}

Powered by Google App Engine
This is Rietveld 408576698