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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 338723002: Add probe to warm data reduction proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « build/common.gypi ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 8b46d9cd5982f30b7e300835067bd059c162b4d1..4b4d009eb9402dac75d08d812274e9eed8619de4 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -461,9 +461,11 @@ int ChromeNetworkDelegate::OnBeforeURLRequest(
// only non-null profiles are considered.
if (first_request_ && profile_) {
bool record_timing = true;
-#if defined(DATA_REDUCTION_PROXY_PROBE_URL)
- record_timing = (request->url() != GURL(DATA_REDUCTION_PROXY_PROBE_URL));
-#endif
+ if (data_reduction_proxy_params_) {
+ record_timing =
+ (request->url() != data_reduction_proxy_params_->probe_url()) &&
+ (request->url() != data_reduction_proxy_params_->warmup_url());
+ }
if (record_timing) {
first_request_ = false;
net::LoadTimingInfo timing_info;
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698