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

Issue 510353004: Fixing DataReductionProxy.BypassedBytes.LocalBypassRules (Closed)

Created:
6 years, 3 months ago by megjablon
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

Fixing bug where DataReductionProxy.BypassedBytes.LocalBypassRules reports bypasses for requests that don't pass the data reduction proxy bypass rules or didn't go through the proxy because of managed PAC. Now DataReducitonProxy.BypassedBytes.ManagedPac reports whenever there is a managed config regardless of whether the data reduction proxy was used. LocalBypassRules reports for proxies when the data reduction proxy was the effective configuration and the request does not pass the data reduction proxy rules. Also changed {Short|Medium}TriggeringRequest, {Short|Medium}All, and ShortAudioVideo so that they are all mutually exclusive. BUG=401305 Committed: https://crrev.com/25ff71d351379440fb6309a8bec1784896b3848e Cr-Commit-Position: refs/heads/master@{#293419}

Patch Set 1 #

Patch Set 2 : Changing managed pac reporting #

Total comments: 14

Patch Set 3 : Addressed bengr comments #

Total comments: 6

Patch Set 4 : Addressed bengr and mmenke comments #

Total comments: 2

Patch Set 5 : Fixing IsBypassedBy... description #

Patch Set 6 : Fixing comment and adding check if proxy is enabled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -14 lines) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_params.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_params.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h View 1 2 3 4 5 2 chunks +7 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc View 1 2 3 4 5 5 chunks +31 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
megjablon
megjablon@chromium.org changed reviewers: + bengr@chromium.org
6 years, 3 months ago (2014-08-29 01:07:16 UTC) #1
megjablon
6 years, 3 months ago (2014-08-29 17:54:45 UTC) #2
bengr
https://codereview.chromium.org/510353004/diff/20001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/510353004/diff/20001/chrome/browser/net/chrome_network_delegate.cc#newcode586 chrome/browser/net/chrome_network_delegate.cc:586: if (data_reduction_proxy_enabled_ && data_reduction_proxy_usage_stats_ && nit: It might be ...
6 years, 3 months ago (2014-08-29 19:29:48 UTC) #3
megjablon
asvitkine: histograms.xml mmenke: chrome_network_delegate.cc https://codereview.chromium.org/510353004/diff/20001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/510353004/diff/20001/chrome/browser/net/chrome_network_delegate.cc#newcode586 chrome/browser/net/chrome_network_delegate.cc:586: if (data_reduction_proxy_enabled_ && data_reduction_proxy_usage_stats_ && ...
6 years, 3 months ago (2014-08-29 20:26:32 UTC) #5
Alexei Svitkine (slow)
lgtm
6 years, 3 months ago (2014-08-29 22:19:08 UTC) #6
bengr
https://codereview.chromium.org/510353004/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/510353004/diff/40001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode168 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:168: if (!data_reduction_proxy_config.Equals( Does this "Equals" do the right thing? ...
6 years, 3 months ago (2014-09-02 05:11:38 UTC) #7
mmenke
https://codereview.chromium.org/510353004/diff/40001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/510353004/diff/40001/chrome/browser/net/chrome_network_delegate.cc#newcode592 chrome/browser/net/chrome_network_delegate.cc:592: proxy_config_getter_.Run()); Can't RecordBypassedBytesHistograms just use request->proxy_server()? Looking at the ...
6 years, 3 months ago (2014-09-02 14:30:52 UTC) #8
megjablon
https://codereview.chromium.org/510353004/diff/40001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/510353004/diff/40001/chrome/browser/net/chrome_network_delegate.cc#newcode592 chrome/browser/net/chrome_network_delegate.cc:592: proxy_config_getter_.Run()); On 2014/09/02 14:30:52, mmenke wrote: > Can't RecordBypassedBytesHistograms ...
6 years, 3 months ago (2014-09-02 21:00:16 UTC) #9
mmenke
chrome_network_delegate.cc LGTM.
6 years, 3 months ago (2014-09-03 15:30:38 UTC) #10
bengr
https://codereview.chromium.org/510353004/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_params.h File components/data_reduction_proxy/browser/data_reduction_proxy_params.h (right): https://codereview.chromium.org/510353004/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_params.h#newcode134 components/data_reduction_proxy/browser/data_reduction_proxy_params.h:134: // Returns true if this request could be sent ...
6 years, 3 months ago (2014-09-03 17:06:55 UTC) #11
megjablon
https://codereview.chromium.org/510353004/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_params.h File components/data_reduction_proxy/browser/data_reduction_proxy_params.h (right): https://codereview.chromium.org/510353004/diff/60001/components/data_reduction_proxy/browser/data_reduction_proxy_params.h#newcode134 components/data_reduction_proxy/browser/data_reduction_proxy_params.h:134: // Returns true if this request could be sent ...
6 years, 3 months ago (2014-09-03 17:20:12 UTC) #12
bengr
lgtm
6 years, 3 months ago (2014-09-03 19:38:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/megjablon@chromium.org/510353004/100001
6 years, 3 months ago (2014-09-04 22:49:00 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 7355011638dee0c3b687ca7adb261b8337909a37
6 years, 3 months ago (2014-09-05 03:25:45 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:36:12 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/25ff71d351379440fb6309a8bec1784896b3848e
Cr-Commit-Position: refs/heads/master@{#293419}

Powered by Google App Engine
This is Rietveld 408576698