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

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

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove incorrect DCHECK from drp_statistics_prefs.cc Created 6 years, 3 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: 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 42b7463c0cfd528433de1873ef389e1f186f6a0d..765d1d0fe5124c99733098ae9258b65fdbb6f686 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -132,22 +132,11 @@ void UpdateContentLengthPrefs(
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(
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698