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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc

Issue 981633002: Created new URLRequestContext for secure proxy check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved Secure Proxy check to separate class. Addressed comments. Created 5 years, 9 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/spdyproxy/data_reduction_proxy_chrome_settings.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
index fb52580c5471ef3933c6bdac724765dce08f8ab6..df99d96c5905f5df2a2552e8f2b16911258936de 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
@@ -22,7 +22,6 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
-#include "net/url_request/url_request_context_getter.h"
// The Data Reduction Proxy has been turned into a "best effort" proxy,
// meaning it is used only if the effective proxy configuration resolves to
@@ -78,7 +77,6 @@ void DataReductionProxyChromeSettings::Shutdown() {
void DataReductionProxyChromeSettings::InitDataReductionProxySettings(
data_reduction_proxy::DataReductionProxyIOData* io_data,
PrefService* profile_prefs,
- net::URLRequestContextGetter* request_context_getter,
const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner) {
#if defined(OS_ANDROID) || defined(OS_IOS)
// On mobile we write Data Reduction Proxy prefs directly to the pref service.
@@ -98,7 +96,7 @@ void DataReductionProxyChromeSettings::InitDataReductionProxySettings(
scoped_ptr<data_reduction_proxy::DataReductionProxyService>
service = make_scoped_ptr(
new data_reduction_proxy::DataReductionProxyService(
- statistics_prefs.Pass(), this, request_context_getter));
+ statistics_prefs.Pass(), this));
data_reduction_proxy::DataReductionProxySettings::
InitDataReductionProxySettings(profile_prefs, io_data, service.Pass());
io_data->SetDataReductionProxyService(

Powered by Google App Engine
This is Rietveld 408576698