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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.cc

Issue 791493015: Adding q=low to the Chrome-Proxy request header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/core/browser/data_reduction_proxy_auth_request_handler.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.cc
index b4bad4fcee32e16f121f3c2a25ef6b9062c5ef41..1fb5a855340b0aabaaf8e7be64ae6b8231d1e91b 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.cc
@@ -169,6 +169,9 @@ void DataReductionProxyAuthRequestHandler::AddAuthorizationHeader(
header_value += ", b=" + build_number_ + ", p=" + patch_number_;
if (!client_.empty())
header_value += ", c=" + client_;
+ if (DataReductionProxyParams::IsLoFiCommandLineSwitchOn()) {
+ header_value += ", q=low";
bengr 2015/01/17 01:06:17 This has even less to do with authorization than d
megjablon 2015/01/24 01:48:59 Done.
+ }
headers->SetHeader(kChromeProxyHeader, header_value);
}

Powered by Google App Engine
This is Rietveld 408576698