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

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

Issue 1768163003: Do not check ProxyInfo if the the DRP config is not valid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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/core/browser/data_reduction_proxy_delegate_unittest.cc » ('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 15356ab379ef669092ba358ea4ce61a299422a57..52a7b735e95cb5823846855edf6dd5fc77eb74de 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
@@ -120,9 +120,10 @@ void OnResolveProxyHandler(const GURL& url,
!config->IsDataReductionProxy(result->proxy_server().host_port_pair(),
NULL));
bool data_saver_proxy_used = true;
- if (!result->proxy_server().is_direct() || result->proxy_list().size() != 1 ||
- url.SchemeIsWSOrWSS())
+ if (result->is_empty() || !result->proxy_server().is_direct() ||
+ result->proxy_list().size() != 1 || url.SchemeIsWSOrWSS()) {
return;
+ }
if (data_reduction_proxy_config.is_valid()) {
net::ProxyInfo data_reduction_proxy_info;
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698