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

Issue 2887423002: Add an about:flag to support alternative data saver features (Closed)

Created:
3 years, 7 months ago by RyanSturm
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an about:flag to support alternative data saver features This flag allows an alternative back end Data Saver implementation to be used by chrome. This may result in different types of previews served, different triggering mechanisms, or other back end changes that are not used by default. This also fixes the CP header having multiple "exp" directives. BUG=721113, 656195 Review-Url: https://codereview.chromium.org/2887423002 Cr-Commit-Position: refs/heads/master@{#474320} Committed: https://chromium.googlesource.com/chromium/src/+/7e309dd054ce82c89ff193ca57f559d025ccbe4d

Patch Set 1 #

Patch Set 2 : enums feature #

Total comments: 10

Patch Set 3 : tbansal comments #

Patch Set 4 : two more nits #

Patch Set 5 : fixes #

Total comments: 6

Patch Set 6 : tbansal nits #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -107 lines) Patch
M chrome/browser/about_flags.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 1 chunk +10 lines, -0 lines 2 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc View 12 chunks +0 lines, -58 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 3 chunks +11 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc View 1 2 3 4 3 chunks +8 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options_unittest.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/lofi_decider.h View 1 chunk +0 lines, -5 lines 0 comments Download
M tools/chrome_proxy/webdriver/lite_page.py View 4 chunks +10 lines, -10 lines 2 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (28 generated)
RyanSturm
tbansal, buettner: PTAL
3 years, 7 months ago (2017-05-18 21:21:20 UTC) #10
tbansal1
https://codereview.chromium.org/2887423002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2887423002/diff/20001/chrome/browser/about_flags.cc#newcode1895 chrome/browser/about_flags.cc:1895: {"enable-data-reduction-proxy-alternative-back-end", I still think this should be a dropdown ...
3 years, 7 months ago (2017-05-19 16:27:23 UTC) #13
RyanSturm
tbansal: PTAL. There's no good way to get lite pages to use the flag correctly ...
3 years, 7 months ago (2017-05-23 22:04:58 UTC) #18
tbansal1
lgtm % nits. Feel free to skip the one comment that is not related to ...
3 years, 7 months ago (2017-05-23 23:13:35 UTC) #23
RyanSturm
https://codereview.chromium.org/2887423002/diff/80001/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc (right): https://codereview.chromium.org/2887423002/diff/80001/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc#newcode126 components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc:126: RegenerateRequestHeaderValue(); On 2017/05/23 23:13:34, tbansal1 wrote: > nit: DCHECK_GE(1, ...
3 years, 7 months ago (2017-05-23 23:18:11 UTC) #25
buettner
https://codereview.chromium.org/2887423002/diff/100001/chrome/browser/flag_descriptions.cc File chrome/browser/flag_descriptions.cc (right): https://codereview.chromium.org/2887423002/diff/100001/chrome/browser/flag_descriptions.cc#newcode1166 chrome/browser/flag_descriptions.cc:1166: "Use alternative server configuration"; Just curious, but why are ...
3 years, 7 months ago (2017-05-23 23:32:13 UTC) #27
RyanSturm
https://codereview.chromium.org/2887423002/diff/100001/chrome/browser/flag_descriptions.cc File chrome/browser/flag_descriptions.cc (right): https://codereview.chromium.org/2887423002/diff/100001/chrome/browser/flag_descriptions.cc#newcode1166 chrome/browser/flag_descriptions.cc:1166: "Use alternative server configuration"; On 2017/05/23 23:32:13, buettner wrote: ...
3 years, 7 months ago (2017-05-24 16:16:03 UTC) #30
buettner
On 2017/05/24 16:16:03, RyanSturm wrote: > https://codereview.chromium.org/2887423002/diff/100001/chrome/browser/flag_descriptions.cc > File chrome/browser/flag_descriptions.cc (right): > > https://codereview.chromium.org/2887423002/diff/100001/chrome/browser/flag_descriptions.cc#newcode1166 > ...
3 years, 7 months ago (2017-05-24 16:22:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887423002/100001
3 years, 7 months ago (2017-05-24 16:24:10 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/7e309dd054ce82c89ff193ca57f559d025ccbe4d
3 years, 7 months ago (2017-05-24 16:30:10 UTC) #37
dougarnett
3 years, 7 months ago (2017-05-26 23:24:43 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/2887423002/diff/100001/tools/chrome_proxy/web...
File tools/chrome_proxy/webdriver/lite_page.py (right):

https://codereview.chromium.org/2887423002/diff/100001/tools/chrome_proxy/web...
tools/chrome_proxy/webdriver/lite_page.py:16: # If it was attempted to run with
another experiment, skip this test.
This comment no longer belongs here as the related code got below to an inner
scope.

https://codereview.chromium.org/2887423002/diff/100001/tools/chrome_proxy/web...
tools/chrome_proxy/webdriver/lite_page.py:46: # If it was attempted to run with
another experiment, skip this test.
ditto

Powered by Google App Engine
This is Rietveld 408576698