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

Issue 684223003: Data Reduction Proxy Interstitials (Closed)

Created:
6 years, 1 month ago by megjablon
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Data Reduction Proxy Interstitials A resource throttle and ui manager for the Data Reduction Proxy bypass interstitials. The intersitial is shown when the user loads a resource that returns a data reduction proxy bypass on http. The user can choose to continue loading the page or go back to the previous page. If the user accepts loading the page, the intertitial will not be shown again for another 5 minutes. BUG=428408 Committed: https://crrev.com/5effca2eb326a4c6bc379e1035e183c2d2cdea83 Cr-Commit-Position: refs/heads/master@{#316330}

Patch Set 1 : #

Patch Set 2 : Rebase #

Total comments: 61

Patch Set 3 : Addressing comments #

Total comments: 66

Patch Set 4 : Adding tests and addressing comments #

Total comments: 90

Patch Set 5 : Addressing bengr comments #

Total comments: 32

Patch Set 6 : Rebase #

Patch Set 7 : Addressing bengr comments #

Patch Set 8 : Rebase #

Total comments: 4

Patch Set 9 : Rebase #

Total comments: 5

Patch Set 10 : Addressing thestig and mmenke comments #

Patch Set 11 : Fixed crash #

Patch Set 12 : Update copyright year #

Total comments: 15

Patch Set 13 : Addressing mmenke comments #

Patch Set 14 : Rebase #

Total comments: 7

Patch Set 15 : Addressing mmenke and blundell comments #

Patch Set 16 : Rebase #

Total comments: 34

Patch Set 17 : Rebase #

Patch Set 18 : Addressing bengr comments #

Patch Set 19 : Rebase #

Total comments: 6

Patch Set 20 : Rebase #

Patch Set 21 : Nits #

Total comments: 2

Patch Set 22 : Thestig comment and test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1140 lines, -21 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +32 lines, -10 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +24 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
A + components/data_reduction_proxy/content/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
A components/data_reduction_proxy/content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +35 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +58 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +36 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +115 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +147 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +141 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +88 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +95 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +163 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +35 lines, -0 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 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +19 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +12 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +16 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +24 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +37 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (42 generated)
megjablon
6 years, 1 month ago (2014-10-30 17:50:39 UTC) #4
bengr
https://codereview.chromium.org/684223003/diff/60001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/60001/chrome/browser/about_flags.cc#newcode2010 chrome/browser/about_flags.cc:2010: #if defined(OS_ANDROID) Please also limit this to Chromium builds ...
6 years, 1 month ago (2014-10-31 17:06:49 UTC) #5
megjablon
https://codereview.chromium.org/684223003/diff/60001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/60001/chrome/browser/about_flags.cc#newcode2010 chrome/browser/about_flags.cc:2010: #if defined(OS_ANDROID) On 2014/10/31 17:06:47, bengr wrote: > Please ...
6 years ago (2014-12-11 23:32:06 UTC) #7
bengr
Obviously this needs tests. https://codereview.chromium.org/684223003/diff/100001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/100001/chrome/browser/about_flags.cc#newcode2201 chrome/browser/about_flags.cc:2201: // enable-data-reduction-proxy-alt is only available ...
6 years ago (2014-12-17 00:30:20 UTC) #8
megjablon
Added a resource throttle test. I started on a ui manager test but with the ...
6 years ago (2014-12-23 02:18:05 UTC) #10
bengr
https://codereview.chromium.org/684223003/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/684223003/diff/140001/chrome/app/generated_resources.grd#newcode6386 chrome/app/generated_resources.grd:6386: + Data reduction proxy bypass warnings The feature is ...
5 years, 11 months ago (2014-12-29 18:45:43 UTC) #11
megjablon
https://codereview.chromium.org/684223003/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/684223003/diff/140001/chrome/app/generated_resources.grd#newcode6386 chrome/app/generated_resources.grd:6386: + Data reduction proxy bypass warnings On 2014/12/29 18:45:41, ...
5 years, 11 months ago (2014-12-30 23:40:01 UTC) #14
bengr
https://codereview.chromium.org/684223003/diff/180001/components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc File components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc (right): https://codereview.chromium.org/684223003/diff/180001/components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc#newcode42 components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc:42: // Enforces warning when the proxy will not be ...
5 years, 11 months ago (2014-12-31 01:10:21 UTC) #15
megjablon
https://codereview.chromium.org/684223003/diff/180001/components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc File components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc (right): https://codereview.chromium.org/684223003/diff/180001/components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc#newcode42 components/data_reduction_proxy/content/browser/data_reduction_proxy_resource_throttle.cc:42: // Enforces warning when the proxy will not be ...
5 years, 11 months ago (2014-12-31 02:12:29 UTC) #17
megjablon
asvitkine@chromium.org: histograms.xml thestig@chromium.org: chrome/*
5 years, 11 months ago (2015-01-07 23:17:15 UTC) #20
Lei Zhang
+mmenke for ProfileIOData and friends. https://codereview.chromium.org/684223003/diff/300001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/684223003/diff/300001/chrome/browser/BUILD.gn#newcode227 chrome/browser/BUILD.gn:227: "//components/data_reduction_proxy/content", Shouldn't this be ...
5 years, 11 months ago (2015-01-07 23:49:42 UTC) #23
Alexei Svitkine (slow)
histograms lgtm
5 years, 11 months ago (2015-01-08 15:19:28 UTC) #24
megjablon
Re-adding mmenke for ProfileIOData and friends. Period delimiter error.
5 years, 11 months ago (2015-01-08 21:33:13 UTC) #26
mmenke
https://codereview.chromium.org/684223003/diff/320001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/684223003/diff/320001/chrome/browser/profiles/profile_impl.cc#newcode651 chrome/browser/profiles/profile_impl.cc:651: #if defined(OS_ANDROID) Why is this only for Android? Why ...
5 years, 11 months ago (2015-01-09 15:25:14 UTC) #27
megjablon
https://codereview.chromium.org/684223003/diff/300001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/684223003/diff/300001/chrome/browser/BUILD.gn#newcode227 chrome/browser/BUILD.gn:227: "//components/data_reduction_proxy/content", On 2015/01/07 23:49:42, Lei Zhang wrote: > Shouldn't ...
5 years, 11 months ago (2015-01-12 22:01:58 UTC) #30
mmenke
https://codereview.chromium.org/684223003/diff/320001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/684223003/diff/320001/chrome/browser/profiles/profile_impl.cc#newcode651 chrome/browser/profiles/profile_impl.cc:651: #if defined(OS_ANDROID) On 2015/01/12 22:01:58, megjablon wrote: > On ...
5 years, 11 months ago (2015-01-12 22:06:07 UTC) #31
megjablon
The latest patch fixes the logic of this interstitial to be more like that of ...
5 years, 11 months ago (2015-01-14 01:22:48 UTC) #32
mmenke
I haven't looked at the code for correctness. I'd like to hold off on landing ...
5 years, 11 months ago (2015-01-16 20:15:28 UTC) #35
megjablon
https://codereview.chromium.org/684223003/diff/440001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/684223003/diff/440001/chrome/browser/profiles/profile_impl_io_data.cc#newcode482 chrome/browser/profiles/profile_impl_io_data.cc:482: (new data_reduction_proxy::DataReductionProxyUIService( On 2015/01/16 20:15:27, mmenke wrote: > DataReductionProxyDebugUIService? ...
5 years, 11 months ago (2015-01-17 02:21:49 UTC) #37
mmenke
Could you merge this now that Ben's CL has landed?
5 years, 10 months ago (2015-01-30 20:27:35 UTC) #38
megjablon
On 2015/01/30 20:27:35, mmenke wrote: > Could you merge this now that Ben's CL has ...
5 years, 10 months ago (2015-01-31 01:50:11 UTC) #42
blundell
https://codereview.chromium.org/684223003/diff/560001/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h File components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h (right): https://codereview.chromium.org/684223003/diff/560001/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h#newcode22 components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_service.h:22: : public DataReductionProxyDebugUIServiceCore { It doesn't seem that this ...
5 years, 10 months ago (2015-02-02 08:12:23 UTC) #43
mmenke
profiles/ LGTM https://codereview.chromium.org/684223003/diff/560001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/560001/chrome/browser/about_flags.cc#newcode2306 chrome/browser/about_flags.cc:2306: channel2 != chrome::VersionInfo::CHANNEL_DEV) { Hrm...Can we just ...
5 years, 10 months ago (2015-02-02 15:45:53 UTC) #44
megjablon
https://codereview.chromium.org/684223003/diff/560001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/560001/chrome/browser/about_flags.cc#newcode2306 chrome/browser/about_flags.cc:2306: channel2 != chrome::VersionInfo::CHANNEL_DEV) { On 2015/02/02 15:45:52, mmenke wrote: ...
5 years, 10 months ago (2015-02-03 23:21:27 UTC) #45
mmenke
https://codereview.chromium.org/684223003/diff/560001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/560001/chrome/browser/about_flags.cc#newcode2306 chrome/browser/about_flags.cc:2306: channel2 != chrome::VersionInfo::CHANNEL_DEV) { On 2015/02/03 23:21:26, megjablon wrote: ...
5 years, 10 months ago (2015-02-03 23:57:32 UTC) #46
blundell
//components lgtm https://codereview.chromium.org/684223003/diff/600001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/684223003/diff/600001/components/components_tests.gyp#newcode644 components/components_tests.gyp:644: # Dependencies of data_reduction_proxy nit: We're not ...
5 years, 10 months ago (2015-02-04 09:17:53 UTC) #47
bengr
Getting close. https://codereview.chromium.org/684223003/diff/600001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/600001/chrome/browser/about_flags.cc#newcode2292 chrome/browser/about_flags.cc:2292: #if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING) Add a blank line above ...
5 years, 10 months ago (2015-02-05 00:23:47 UTC) #48
megjablon
https://codereview.chromium.org/684223003/diff/600001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/600001/chrome/browser/about_flags.cc#newcode2292 chrome/browser/about_flags.cc:2292: #if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING) On 2015/02/05 00:23:46, bengr wrote: > Add ...
5 years, 10 months ago (2015-02-07 05:15:14 UTC) #57
bengr
lgtm, with nits. https://codereview.chromium.org/684223003/diff/880001/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h File components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h (right): https://codereview.chromium.org/684223003/diff/880001/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h#newcode73 components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h:73: // Overrides content::ResourceThrottle. Either say "Overrides ...
5 years, 10 months ago (2015-02-13 16:23:55 UTC) #64
megjablon
https://codereview.chromium.org/684223003/diff/880001/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h File components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h (right): https://codereview.chromium.org/684223003/diff/880001/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h#newcode73 components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h:73: // Overrides content::ResourceThrottle. On 2015/02/13 16:23:54, bengr wrote: > ...
5 years, 10 months ago (2015-02-13 19:50:36 UTC) #66
Lei Zhang
chrome/ lgtm https://codereview.chromium.org/684223003/diff/920001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/920001/chrome/browser/about_flags.cc#newcode2344 chrome/browser/about_flags.cc:2344: chrome::VersionInfo::Channel channel2 = chrome::VersionInfo::GetChannel(); I would just ...
5 years, 10 months ago (2015-02-13 20:11:11 UTC) #67
megjablon
https://codereview.chromium.org/684223003/diff/920001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/684223003/diff/920001/chrome/browser/about_flags.cc#newcode2344 chrome/browser/about_flags.cc:2344: chrome::VersionInfo::Channel channel2 = chrome::VersionInfo::GetChannel(); On 2015/02/13 20:11:11, Lei Zhang ...
5 years, 10 months ago (2015-02-13 21:21:17 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684223003/960001
5 years, 10 months ago (2015-02-13 23:13:18 UTC) #72
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/42763)
5 years, 10 months ago (2015-02-13 23:20:49 UTC) #74
megjablon
creis: Deps
5 years, 10 months ago (2015-02-13 23:33:15 UTC) #76
Charlie Reis
components/data_reduction_proxy/content/DEPS LGTM.
5 years, 10 months ago (2015-02-13 23:44:54 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684223003/960001
5 years, 10 months ago (2015-02-13 23:52:41 UTC) #79
commit-bot: I haz the power
Committed patchset #22 (id:960001)
5 years, 10 months ago (2015-02-13 23:54:19 UTC) #80
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 23:55:11 UTC) #81
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/5effca2eb326a4c6bc379e1035e183c2d2cdea83
Cr-Commit-Position: refs/heads/master@{#316330}

Powered by Google App Engine
This is Rietveld 408576698