New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 720102 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task



Sign in to add a comment

Pass in the NQE threshold for LoFi/WebLite instead of checking it in a helper

Project Member Reported by ryansturm@chromium.org, May 9 2017

Issue description

DataReductionProxyConfig::ShouldEnableLoFiInternal should determine the correct Effective Connection Type threshold based on flags/field trial and pass it to the PreviewsDecider instead of checking itself.

This could be moved outside of DRP code (into ChromeResourceDispatcherHost) potentially.
 

Comment 1 by bengr@chromium.org, May 9 2017

Labels: -Type-Bug Type-Task
Why do we want to do this?
Cc: megjab...@chromium.org
I think we want to refactor how that method looks in general, but we are waiting on CPAT, maybe.
I agree. We probably won't want to do the work of passing in the actual ECT and having PreviewsDecider::ShouldAllowPreviewAtECT decide the ECT because of CPAT. We could move the blacklist logic to a PreviewsDecider::IsPreviewBlacklisted method that is available for DRPConfig to check and that ShouldAllowPreviewAtECT also calls.
+1 for a new PreviewsDecider::IsPreviewBlacklisted() method that does not check ECT at all.
previews_io_data()->previews_black_list()->IsLoadedAndAllowed() == PreviewsEligibilityReason::ALLOWED should do that right now I believe. If anyone needs that as part of PreviewsDecider, feel free to wrap and io method around it.

Comment 6 by bengr@chromium.org, Nov 29 2017

Refreshed during triage.
Status: WontFix (was: Assigned)
This feels like a clean-up bug that should be addressed when it is needed I'm closing as WontFix because of that.

Comment 8 by efoo@chromium.org, Dec 5 2017

Components: Blink>Previews

Comment 9 by efoo@chromium.org, Dec 5 2017

Components: -UI>Browser>Previews

Sign in to add a comment