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

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: Add back IsDataReductionProxyEnabled(). 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 a646f20deb88d04ccff658f65396823639108f45..3658d6dfb2bae0b1f372276255643e06d5a06bb2 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -134,15 +134,9 @@ 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(
+ profile->GetPrefs()->GetBoolean(
data_reduction_proxy::prefs::kDataReductionProxyEnabled);
mmenke 2014/09/10 15:16:48 Could we just move this into UpdateContentLengthPr
Not at Google. Contact bengr 2014/09/10 21:38:34 Done. In the future we want to move off of local
-#else
- bool with_data_reduction_proxy_enabled = false;
-#endif
data_reduction_proxy::UpdateContentLengthPrefs(received_content_length,
original_content_length,

Powered by Google App Engine
This is Rietveld 408576698