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

Unified Diff: components/data_reduction_proxy/content/browser/content_lofi_decider.cc

Issue 2902003002: Remove unused Lite Page fallback code (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/content/browser/content_lofi_decider.cc
diff --git a/components/data_reduction_proxy/content/browser/content_lofi_decider.cc b/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
index ac9452408650d0d10faad044a1f504a280c32253..4f98e4eea1b944c2b0e38617618007e909bf3065 100644
--- a/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
+++ b/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
@@ -117,10 +117,7 @@ void ContentLoFiDecider::MaybeSetAcceptTransformHeader(
if (!(request_info->GetPreviewsState() & content::SERVER_LITE_PAGE_ON))
accept_transform_value += base::StringPrintf(";%s", if_heavy_qualifier());
} else if (lofi_enabled_via_flags_or_field_trial &&
- // Only use Lo-Fi if Lite Pages aren't enabled or fallback from
- // Lite Pages to Lo-Fi is enabled.
- (!lite_page_enabled_via_flags_or_field_trial ||
- params::IsLitePageFallbackEnabled()) &&
+ !lite_page_enabled_via_flags_or_field_trial &&
resource_type_supports_empty_image &&
!(request_info->GetPreviewsState() &
content::SERVER_LITE_PAGE_ON)) {
« no previous file with comments | « no previous file | components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698