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

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

Issue 2486093002: Add a flag to disable the check if proxy is core data saver proxy (Closed)
Patch Set: ps Created 4 years, 1 month 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/core/common/data_reduction_proxy_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
index 72f9c2f76425813ce5effd7baab3485e36ff0eb3..6988b4fbf7f935ddf23cc4f43d13c7fc8daf4761 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
@@ -6,6 +6,7 @@
#include <cmath>
+#include "base/command_line.h"
#include "base/metrics/histogram_macros.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
@@ -13,6 +14,7 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
+#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_util.h"
#include "net/base/host_port_pair.h"
#include "net/base/url_util.h"
@@ -175,9 +177,11 @@ bool DataReductionProxyDelegate::SupportsQUIC(
const net::ProxyServer& proxy_server) const {
// Enable QUIC for whitelisted proxies.
// TODO(tbansal): Use client config service to control this whitelist.
- return proxy_server ==
- net::ProxyServer(net::ProxyServer::SCHEME_HTTPS,
- net::HostPortPair(kDataReductionCoreProxy, 443));
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDataReductionProxyEnableQuicOnNonCoreProxies) ||
+ proxy_server ==
+ net::ProxyServer(net::ProxyServer::SCHEME_HTTPS,
+ net::HostPortPair(kDataReductionCoreProxy, 443));
}
void DataReductionProxyDelegate::RecordQuicProxyStatus(
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698