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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 1735203002: Revert of Moving proxy resolution logic out of NetworkDelegate and into ProxyDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/websockets/websocket_end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 34e1f0bc715acc63e63cec630e4c2e646b3b34f9..60f0f36c8b73fb273257b8ad4fbd52387ad47656 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -52,16 +52,14 @@
TestURLRequestContext::TestURLRequestContext()
: initialized_(false),
- client_socket_factory_(nullptr),
- proxy_delegate_(nullptr),
+ client_socket_factory_(NULL),
context_storage_(this) {
Init();
}
TestURLRequestContext::TestURLRequestContext(bool delay_initialization)
: initialized_(false),
- client_socket_factory_(nullptr),
- proxy_delegate_(nullptr),
+ client_socket_factory_(NULL),
context_storage_(this) {
if (!delay_initialization)
Init();
@@ -101,11 +99,9 @@
EXPECT_FALSE(client_socket_factory_);
} else {
HttpNetworkSession::Params params;
-
if (http_network_session_params_)
params = *http_network_session_params_;
params.client_socket_factory = client_socket_factory();
- params.proxy_delegate = proxy_delegate();
params.host_resolver = host_resolver();
params.cert_verifier = cert_verifier();
params.transport_security_state = transport_security_state();
@@ -124,11 +120,11 @@
}
// In-memory cookie store.
if (!cookie_store())
- context_storage_.set_cookie_store(new CookieMonster(nullptr, nullptr));
+ context_storage_.set_cookie_store(new CookieMonster(NULL, NULL));
// In-memory Channel ID service.
if (!channel_id_service()) {
context_storage_.set_channel_id_service(make_scoped_ptr(
- new ChannelIDService(new DefaultChannelIDStore(nullptr),
+ new ChannelIDService(new DefaultChannelIDStore(NULL),
base::WorkerPool::GetTaskRunner(true))));
}
if (!http_user_agent_settings()) {
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/websockets/websocket_end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698