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

Issue 568893002: Trigger data reduction proxy unreachable message via on proxy fall back. (Closed)

Created:
6 years, 3 months ago by Not at Google. Contact bengr
Modified:
6 years, 3 months ago
Reviewers:
bengr, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Trigger data reduction proxy unreachable message via on proxy fall back. Use the ChromeNetworkDelegate::OnProxyFallback() callback to keep track of number of times the data reduction proxies fall back because of network errors. Display a warning to users if there are network errors when connecting to the proxy and no successful requests through the proxy. BUG=401244 Committed: https://crrev.com/a9a4b7da98fa7832024b4f6ae7e595a8b7e4d2b2 Cr-Commit-Position: refs/heads/master@{#296244}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed bengr's comments #

Total comments: 10

Patch Set 3 : Addressed comments by bengr. Added more tests. #

Patch Set 4 : Use EXPECT_TRUE and EXPECT_FALSE for boolean expectations. #

Patch Set 5 : Sync to head. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -98 lines) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_params.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_params.cc View 1 2 3 4 1 chunk +0 lines, -17 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h View 1 2 4 chunks +15 lines, -13 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc View 1 2 5 chunks +39 lines, -39 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc View 1 2 3 4 7 chunks +93 lines, -23 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
Not at Google. Contact bengr
bengr: components/data_reduction_proxy/browser/data_reduction_proxy_params.cc components/data_reduction_proxy/browser/data_reduction_proxy_params.h components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc mmenke: chrome/browser/net/chrome_network_delegate.cc
6 years, 3 months ago (2014-09-12 19:38:19 UTC) #1
Not at Google. Contact bengr
bengr: components/data_reduction_proxy/browser/data_reduction_proxy_params.cc components/data_reduction_proxy/browser/data_reduction_proxy_params.h components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc mmenke: chrome/browser/net/chrome_network_delegate.cc
6 years, 3 months ago (2014-09-16 17:17:17 UTC) #3
mmenke
On 2014/09/16 17:17:17, kundaji wrote: > bengr: > components/data_reduction_proxy/browser/data_reduction_proxy_params.cc > components/data_reduction_proxy/browser/data_reduction_proxy_params.h > components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc > components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h ...
6 years, 3 months ago (2014-09-16 17:19:08 UTC) #4
bengr
On 2014/09/16 17:19:08, mmenke wrote: > On 2014/09/16 17:17:17, kundaji wrote: > > bengr: > ...
6 years, 3 months ago (2014-09-16 17:22:34 UTC) #5
Not at Google. Contact bengr
On 2014/09/16 17:22:34, bengr1 wrote: > On 2014/09/16 17:19:08, mmenke wrote: > > On 2014/09/16 ...
6 years, 3 months ago (2014-09-16 17:31:47 UTC) #6
bengr
https://codereview.chromium.org/568893002/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/568893002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode82 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:82: num_successful_requests_through_proxy_(0), num_ is implied here and with proxy_net_errors_. I ...
6 years, 3 months ago (2014-09-16 18:48:57 UTC) #7
Not at Google. Contact bengr
https://codereview.chromium.org/568893002/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/568893002/diff/1/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode82 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:82: num_successful_requests_through_proxy_(0), On 2014/09/16 18:48:57, bengr1 wrote: > num_ is ...
6 years, 3 months ago (2014-09-16 19:34:49 UTC) #8
Not at Google. Contact bengr
Ping:)
6 years, 3 months ago (2014-09-18 18:04:48 UTC) #9
bengr
lgtm, but please address my nits and name changes. https://codereview.chromium.org/568893002/diff/20001/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/568893002/diff/20001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode31 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:31: ...
6 years, 3 months ago (2014-09-19 21:28:13 UTC) #10
Not at Google. Contact bengr
https://codereview.chromium.org/568893002/diff/20001/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/568893002/diff/20001/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc#newcode31 components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc:31: const int UNAVAILABLE_THRESHOLD_NUM_PROXY_NET_ERRORS = 0; On 2014/09/19 21:28:12, bengr1 ...
6 years, 3 months ago (2014-09-22 21:46:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/568893002/80001
6 years, 3 months ago (2014-09-23 20:31:07 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 4019f5a87b5acb40588fd0d8ff951eee426e2ff0
6 years, 3 months ago (2014-09-23 21:11:05 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 21:12:16 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a9a4b7da98fa7832024b4f6ae7e595a8b7e4d2b2
Cr-Commit-Position: refs/heads/master@{#296244}

Powered by Google App Engine
This is Rietveld 408576698