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

Unified Diff: chrome/browser/io_thread.cc

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch to run tests overnight. Created 6 years, 5 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/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 2a116ed77554707c3dab8c12be04f089de4ed2fc..6ff566e3f9238132d4ceb059937a0fb1936d5a36 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -40,7 +40,11 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/pref_names.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
#include "components/policy/core/common/policy_service.h"
#include "components/variations/variations_associated_data.h"
#include "content/public/browser/browser_thread.h"
@@ -91,13 +95,6 @@
#include "net/ocsp/nss_ocsp.h"
#endif
-#if defined(OS_ANDROID) || defined(OS_IOS)
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h"
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h"
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
-#endif
-
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/login/users/user_manager.h"
#include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h"
@@ -105,13 +102,10 @@
#endif
using content::BrowserThread;
-
-#if defined(OS_ANDROID) || defined(OS_IOS)
using data_reduction_proxy::DataReductionProxyAuthRequestHandler;
using data_reduction_proxy::DataReductionProxyParams;
using data_reduction_proxy::DataReductionProxyUsageStats;
using data_reduction_proxy::DataReductionProxySettings;
-#endif
class SafeBrowsingURLRequestContext;
@@ -625,11 +619,10 @@ void IOThread::InitAsync() {
}
#endif
globals_->ssl_config_service = GetSSLConfigService();
-#if defined(OS_ANDROID) || defined(OS_IOS)
-#if defined(SPDY_PROXY_AUTH_ORIGIN)
- int drp_flags = DataReductionProxyParams::kFallbackAllowed;
+ int drp_flags = 0;
if (DataReductionProxyParams::IsIncludedInFieldTrial())
bengr 2014/07/15 16:38:16 Can you gate the instantiation of everything relat
Not at Google. Contact bengr 2014/07/16 22:41:34 Added TODO and an entry in spreadsheet.
- drp_flags |= DataReductionProxyParams::kAllowed;
+ drp_flags = DataReductionProxyParams::kAllowed |
+ DataReductionProxyParams::kFallbackAllowed;
if (DataReductionProxyParams::IsIncludedInAlternativeFieldTrial())
drp_flags |= DataReductionProxyParams::kAlternativeAllowed;
if (DataReductionProxyParams::IsIncludedInPromoFieldTrial())
@@ -651,10 +644,10 @@ void IOThread::InitAsync() {
network_delegate->set_data_reduction_proxy_usage_stats(proxy_usage_stats);
network_delegate->set_data_reduction_proxy_auth_request_handler(
globals_->data_reduction_proxy_auth_request_handler.get());
+
network_delegate->set_on_resolve_proxy_handler(
globals_->on_resolve_proxy_handler);
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
-#endif // defined(OS_ANDROID) || defined(OS_IOS)
+
globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory(
globals_->host_resolver.get()));
globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl());

Powered by Google App Engine
This is Rietveld 408576698