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

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

Issue 2887423002: Add an about:flag to support alternative data saver features (Closed)
Patch Set: fixes 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
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 dc203b99319c979c4bf6ea15c64da066277bc8e5..ac9452408650d0d10faad044a1f504a280c32253 100644
--- a/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
+++ b/components/data_reduction_proxy/content/browser/content_lofi_decider.cc
@@ -180,22 +180,6 @@ void ContentLoFiDecider::RemoveAcceptTransformHeader(
headers->RemoveHeader(chrome_proxy_accept_transform_header());
}
-void ContentLoFiDecider::MaybeSetIgnorePreviewsBlacklistDirective(
- net::HttpRequestHeaders* headers) const {
- if (!headers || !params::AreLitePagesEnabledViaFlags() ||
- !IsLitePagePreviewRequested(*headers)) {
- return;
- }
- std::string chrome_proxy_header_value;
- headers->GetHeader(chrome_proxy_header(), &chrome_proxy_header_value);
- headers->RemoveHeader(chrome_proxy_header());
- if (!chrome_proxy_header_value.empty())
- chrome_proxy_header_value += ", ";
- chrome_proxy_header_value +=
- chrome_proxy_lite_page_ignore_blacklist_directive();
- headers->SetHeader(chrome_proxy_header(), chrome_proxy_header_value);
-}
-
bool ContentLoFiDecider::ShouldRecordLoFiUMA(
const net::URLRequest& request) const {
const content::ResourceRequestInfo* request_info =

Powered by Google App Engine
This is Rietveld 408576698