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

Issue 2911673002: New CPAT support in ContentLoFiDecider guarded by feature flag. (Closed)

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

Description

New CPAT support in ContentLoFiDecider guarded by feature flag. Updates MaybeSetAcceptTransformHeader to set accept header based only on PreviewsState (if new feature enabled) vs. checking various other flags. Also new path will not add "ifheavy" qualifier. This is step 2 of 4 in adding new CPAT protocol support. Step 1 is in CL 2889993004. Step 3 is in CL 2903453003. BUG=701802 Review-Url: https://codereview.chromium.org/2911673002 Cr-Commit-Position: refs/heads/master@{#476678} Committed: https://chromium.googlesource.com/chromium/src/+/f134cffafa9fca0640bacbb56d9de9af0a8f25aa

Patch Set 1 #

Patch Set 2 : FIxed a comment #

Total comments: 14

Patch Set 3 : Address some of megjablon's comments #

Patch Set 4 : Added comment to help clarify the new empty-image accept path #

Patch Set 5 : Improved unittests per feedback #

Total comments: 6

Patch Set 6 : Further improved unittests #

Patch Set 7 : Backed out some debug code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -31 lines) Patch
M components/data_reduction_proxy/content/browser/content_lofi_decider.cc View 1 2 3 4 5 3 chunks +63 lines, -31 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc View 1 2 3 4 5 6 7 chunks +137 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (29 generated)
dougarnett
3 years, 7 months ago (2017-05-26 16:33:22 UTC) #6
megjablon
https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode73 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:73: content::PreviewsState previews_state = request_info->GetPreviewsState(); I'd move this line above ...
3 years, 6 months ago (2017-05-30 18:38:53 UTC) #10
dougarnett
https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode73 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:73: content::PreviewsState previews_state = request_info->GetPreviewsState(); On 2017/05/30 18:38:53, megjablon wrote: ...
3 years, 6 months ago (2017-05-30 22:15:48 UTC) #15
bengr
https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc File components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc (right): https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc#newcode311 components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc:311: TEST_F(ContentLoFiDeciderTest, MaybeSetAcceptTransformHeaderProxyDecides) { On 2017/05/30 22:15:48, dougarnett wrote: > ...
3 years, 6 months ago (2017-05-31 18:48:28 UTC) #18
dougarnett
https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc File components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc (right): https://codereview.chromium.org/2911673002/diff/20001/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc#newcode311 components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc:311: TEST_F(ContentLoFiDeciderTest, MaybeSetAcceptTransformHeaderProxyDecides) { On 2017/05/31 18:48:28, bengr wrote: > ...
3 years, 6 months ago (2017-05-31 23:05:21 UTC) #21
megjablon
https://codereview.chromium.org/2911673002/diff/80001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/2911673002/diff/80001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode72 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:72: content::PreviewsState previews_state = request_info->GetPreviewsState(); Replace request_info->GetPreviewsState() calls below in ...
3 years, 6 months ago (2017-06-01 00:06:21 UTC) #22
dougarnett
https://codereview.chromium.org/2911673002/diff/80001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc File components/data_reduction_proxy/content/browser/content_lofi_decider.cc (right): https://codereview.chromium.org/2911673002/diff/80001/components/data_reduction_proxy/content/browser/content_lofi_decider.cc#newcode72 components/data_reduction_proxy/content/browser/content_lofi_decider.cc:72: content::PreviewsState previews_state = request_info->GetPreviewsState(); On 2017/06/01 00:06:21, megjablon wrote: ...
3 years, 6 months ago (2017-06-01 18:16:48 UTC) #31
megjablon
lgtm
3 years, 6 months ago (2017-06-01 22:24:03 UTC) #34
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/2911673002/120001
3 years, 6 months ago (2017-06-02 15:55:04 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 15:59:31 UTC) #39
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/f134cffafa9fca0640bacbb56d9d...

Powered by Google App Engine
This is Rietveld 408576698