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

Issue 602503002: Adds UMA to measure when the data reduction proxy via header is missing (Closed)

Created:
6 years, 3 months ago by sclittle
Modified:
6 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adds UMA to measure when the data reduction proxy via header is missing Keep track of the situations when Chrome expects the data reduction proxy via header to be present in a response, but the data reduction proxy via header is missing. This change is the same as the reverted change https://codereview.chromium.org/577343002/, except that it includes a 1-line fix in data_reduction_proxy_usage_stats_unittests.cc to make the tests pass when run with Valgrind in release builds. BUG=412888 Committed: https://crrev.com/f72ee64ee192ff8eab696bf68130f18c2837305b Cr-Commit-Position: refs/heads/master@{#296496}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Move side effects out of CHECK statement #

Patch Set 3 : Remove DCHECKs from tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -54 lines) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/data_reduction_proxy.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc View 2 chunks +1 line, -12 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc View 2 chunks +1 line, -8 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection_unittest.cc View 2 chunks +1 line, -6 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h View 5 chunks +31 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc View 8 chunks +64 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc View 1 2 5 chunks +253 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/common/data_reduction_proxy_headers_test_utils.h View 1 chunk +17 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/common/data_reduction_proxy_headers_test_utils.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/common/data_reduction_proxy_headers_unittest.cc View 1 chunk +1 line, -12 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
sclittle
https://codereview.chromium.org/577343002/ was reverted, this CL is the same except for a 1-line change of a ...
6 years, 3 months ago (2014-09-24 04:22:58 UTC) #2
Alexei Svitkine (slow)
LGTM, but in the future when doing relands, it's best the upload the original CL ...
6 years, 3 months ago (2014-09-24 14:52:43 UTC) #3
mmenke
chrome/browser/net/chrome_network_delegate.cc still LGTM. https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc (right): https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc#newcode67 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc:67: test_job_interceptor_)); I think it's still a ...
6 years, 3 months ago (2014-09-24 15:31:12 UTC) #4
sclittle
https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc (right): https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc#newcode67 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc:67: test_job_interceptor_)); On 2014/09/24 15:31:12, mmenke wrote: > I think ...
6 years, 3 months ago (2014-09-24 17:41:44 UTC) #5
bengr
https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc (right): https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc#newcode67 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc:67: test_job_interceptor_)); On 2014/09/24 17:41:44, sclittle wrote: > On 2014/09/24 ...
6 years, 3 months ago (2014-09-24 17:46:47 UTC) #6
sclittle
https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc (right): https://codereview.chromium.org/602503002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc#newcode67 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc:67: test_job_interceptor_)); On 2014/09/24 17:46:47, bengr1 wrote: > On 2014/09/24 ...
6 years, 3 months ago (2014-09-24 18:05:14 UTC) #8
bengr
lgtm
6 years, 3 months ago (2014-09-24 19:03:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/602503002/60001
6 years, 3 months ago (2014-09-24 19:04:10 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001) as 3b2d599ed7386f09cb926ad5d4dff46dc38b4315
6 years, 3 months ago (2014-09-24 20:04:35 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 20:05:16 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f72ee64ee192ff8eab696bf68130f18c2837305b
Cr-Commit-Position: refs/heads/master@{#296496}

Powered by Google App Engine
This is Rietveld 408576698