From 57cb0f76bceab5f05f3d14a23e764795b476f3d3 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Fri, 28 Jan 2011 06:33:58 +0000 Subject: Simplify HttpCache/HttpNetworkLayer/HttpNetworkSession interaction. Eliminate lazy initialization of HttpNetworkSession in HttpNetworkLayer. * This eliminates the need to update parameters for HttpNetworkLayer, it just takes a HttpNetworkSession. * It is OK to eliminate lazy initialization since these variables are cheap. BUG=none TEST=none Review URL: http://codereview.chromium.org/6402002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72931 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/sync/glue/http_bridge.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/sync') diff --git a/chrome/browser/sync/glue/http_bridge.cc b/chrome/browser/sync/glue/http_bridge.cc index 265a044..b51975c 100644 --- a/chrome/browser/sync/glue/http_bridge.cc +++ b/chrome/browser/sync/glue/http_bridge.cc @@ -87,7 +87,7 @@ HttpBridge::RequestContext::RequestContext( net::HttpNetworkSession* session = baseline_context->http_transaction_factory()->GetSession(); DCHECK(session); - http_transaction_factory_ = net::HttpNetworkLayer::CreateFactory(session); + http_transaction_factory_ = new net::HttpNetworkLayer(session); // TODO(timsteele): We don't currently listen for pref changes of these // fields or CookiePolicy; I'm not sure we want to strictly follow the -- cgit v1.1