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

Issue 577343002: 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. BUG=412888 Committed: https://crrev.com/ba1e1e3f7ea6edae987e6cfa92086807bf74260b Cr-Commit-Position: refs/heads/master@{#296297}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Addressed comments #

Total comments: 12

Patch Set 3 : Addressed comments #

Total comments: 18

Patch Set 4 : Addressed comments #

Patch Set 5 : Addressed comments #

Total comments: 18

Patch Set 6 : Addressed comments #

Total comments: 2

Patch Set 7 : Addressed comments #

Patch Set 8 : Sync to head #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -54 lines) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M components/data_reduction_proxy.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -12 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc View 1 2 2 chunks +1 line, -8 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection_unittest.cc View 1 2 chunks +1 line, -6 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h View 1 2 3 4 5 6 7 5 chunks +31 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc View 1 2 3 4 5 6 7 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 3 4 5 6 7 5 chunks +252 lines, -0 lines 1 comment Download
A components/data_reduction_proxy/common/data_reduction_proxy_headers_test_utils.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/common/data_reduction_proxy_headers_test_utils.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/common/data_reduction_proxy_headers_unittest.cc View 1 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: 40 (16 generated)
sclittle
bengr: all mmenke: chrome_network_delegate asvitkine: histograms.xml Thanks in advance!
6 years, 3 months ago (2014-09-18 18:23:14 UTC) #2
mmenke
https://codereview.chromium.org/577343002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/577343002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode593 chrome/browser/net/chrome_network_delegate.cc:593: data_reduction_proxy_usage_stats_->RecordMissingViaHeaderBytes(request); This function name is very confusing, since it's ...
6 years, 3 months ago (2014-09-18 18:39:30 UTC) #3
bengr
I'll wait for you to address mmenke's point before doing a detailed review. https://codereview.chromium.org/577343002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc File ...
6 years, 3 months ago (2014-09-18 19:55:57 UTC) #4
sclittle
https://codereview.chromium.org/577343002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/577343002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode593 chrome/browser/net/chrome_network_delegate.cc:593: data_reduction_proxy_usage_stats_->RecordMissingViaHeaderBytes(request); On 2014/09/18 18:39:30, mmenke wrote: > This function ...
6 years, 3 months ago (2014-09-19 01:05:02 UTC) #6
mmenke
https://codereview.chromium.org/577343002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode409 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:409: || HasDataReductionProxyViaHeader(request->response_headers(), NULL)) { On 2014/09/19 01:05:01, sclittle wrote: ...
6 years, 3 months ago (2014-09-19 01:39:03 UTC) #7
mmenke
On 2014/09/19 01:39:03, mmenke wrote: > https://codereview.chromium.org/577343002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc > File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc > (right): > > https://codereview.chromium.org/577343002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode409 ...
6 years, 3 months ago (2014-09-19 01:39:19 UTC) #8
bengr
https://codereview.chromium.org/577343002/diff/40001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/40001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode82 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:82: // The data reduction proxy via header is present, ...
6 years, 3 months ago (2014-09-19 21:42:57 UTC) #9
sclittle
https://codereview.chromium.org/577343002/diff/40001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/40001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode82 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:82: // The data reduction proxy via header is present, ...
6 years, 3 months ago (2014-09-19 22:38:12 UTC) #10
bengr
https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode190 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:190: const BooleanPrefMember& data_reduction_proxy_enabled, Forward declare? https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode412 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:412: URLRequest& request) ...
6 years, 3 months ago (2014-09-22 19:36:17 UTC) #11
sclittle
https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode190 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:190: const BooleanPrefMember& data_reduction_proxy_enabled, On 2014/09/22 19:36:16, bengr1 wrote: > ...
6 years, 3 months ago (2014-09-22 20:54:25 UTC) #13
bengr
lgtm, with nit https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode190 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:190: const BooleanPrefMember& data_reduction_proxy_enabled, On 2014/09/22 20:54:25, ...
6 years, 3 months ago (2014-09-22 22:01:26 UTC) #14
sclittle
https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode190 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:190: const BooleanPrefMember& data_reduction_proxy_enabled, On 2014/09/22 22:01:26, bengr1 wrote: > ...
6 years, 3 months ago (2014-09-22 22:38:19 UTC) #15
mmenke
net/chrome_network_delegate.cc LGTM
6 years, 3 months ago (2014-09-23 14:49:27 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode81 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:81: bool is_primary, const net::HttpResponseHeaders* headers) { Nit: 1 param ...
6 years, 3 months ago (2014-09-23 15:12:14 UTC) #17
sclittle
https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode81 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:81: bool is_primary, const net::HttpResponseHeaders* headers) { On 2014/09/23 15:12:13, ...
6 years, 3 months ago (2014-09-23 18:13:41 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode90 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:90: UMA_HISTOGRAM_CUSTOM_ENUMERATION( On 2014/09/23 18:13:41, sclittle wrote: > On 2014/09/23 ...
6 years, 3 months ago (2014-09-23 18:20:07 UTC) #21
sclittle
https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc File components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc (right): https://codereview.chromium.org/577343002/diff/120001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode90 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:90: UMA_HISTOGRAM_CUSTOM_ENUMERATION( On 2014/09/23 18:20:06, Alexei Svitkine wrote: > On ...
6 years, 3 months ago (2014-09-23 19:58:31 UTC) #22
Alexei Svitkine (slow)
LGTM, thanks!
6 years, 3 months ago (2014-09-23 20:12:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/577343002/200001
6 years, 3 months ago (2014-09-23 20:30:59 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/16656)
6 years, 3 months ago (2014-09-23 21:15:27 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/577343002/220001
6 years, 3 months ago (2014-09-23 21:57:00 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:220001) as 788ee83ba3cc2ea57b3f5beda20df04edf0ab361
6 years, 3 months ago (2014-09-23 23:22:17 UTC) #38
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ba1e1e3f7ea6edae987e6cfa92086807bf74260b Cr-Commit-Position: refs/heads/master@{#296297}
6 years, 3 months ago (2014-09-23 23:23:01 UTC) #39
Lei Zhang
6 years, 3 months ago (2014-09-24 04:53:07 UTC) #40
Message was sent while issue was closed.
https://codereview.chromium.org/577343002/diff/220001/components/data_reducti...
File
components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc
(right):

https://codereview.chromium.org/577343002/diff/220001/components/data_reducti...
components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc:64:
DCHECK(test_job_factory_.SetProtocolHandler(url::kHttpScheme,
You can't do this. SetProtocolHandler() won't run in Release mode when DCHECKs
are disabled.

Powered by Google App Engine
This is Rietveld 408576698