Add data reduction functionality to all platforms.
* Remove all #if defined guards from data reduction proxy functionality.
* Hard code proxy urls in params rather than providing them in gyp files.
* Add DataCompressionProxyRollout field trial to all platforms.
* Pass in bypass duration into UpdateRetryInfoOnFallback rather than computing
it based on SPDY_PROXY_AUTH_ORIGIN. Remove unused UMAs.
BUG=384394,384397
Review URL: https://codereview.chromium.org/382313003
Cr-Commit-Position: refs/heads/master@{#296122}
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 42b7463c0c..765d1d0 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -132,22 +132,11 @@
profile->IsOffTheRecord()) {
return;
}
-#if defined(OS_ANDROID) && defined(SPDY_PROXY_AUTH_ORIGIN)
- // If Android ever goes multi profile, the profile should be passed so that
- // the browser preference will be taken.
- bool with_data_reduction_proxy_enabled =
- ProfileManager::GetActiveUserProfile()->GetPrefs()->GetBoolean(
- data_reduction_proxy::prefs::kDataReductionProxyEnabled);
-#else
- bool with_data_reduction_proxy_enabled = false;
-#endif
-
data_reduction_proxy::UpdateContentLengthPrefs(
received_content_length,
original_content_length,
- with_data_reduction_proxy_enabled,
- request_type,
- statistics_prefs);
+ profile->GetPrefs(),
+ request_type, statistics_prefs);
}
void StoreAccumulatedContentLength(