From 36c8e5f7523eb31c11fce92246cdaca4e7af4f36 Mon Sep 17 00:00:00 2001 From: "cbentzel@chromium.org" Date: Mon, 7 Jun 2010 14:17:14 +0000 Subject: HttpAuthHandler's are no longer refcounted. Since HttpAuthHandler objects are no longer contained inside of the HttpAuthCache, the lifetime of the handlers is more clearly defined. TEST=net_unittests (including some changes) BUG=42222 Review URL: http://codereview.chromium.org/2635004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49052 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_auth_handler_basic.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/http/http_auth_handler_basic.cc') diff --git a/net/http/http_auth_handler_basic.cc b/net/http/http_auth_handler_basic.cc index 98bd02a..21bfc44 100644 --- a/net/http/http_auth_handler_basic.cc +++ b/net/http/http_auth_handler_basic.cc @@ -80,10 +80,10 @@ int HttpAuthHandlerBasic::Factory::CreateAuthHandler( CreateReason reason, int digest_nonce_count, const BoundNetLog& net_log, - scoped_refptr* handler) { + scoped_ptr* handler) { // TODO(cbentzel): Move towards model of parsing in the factory // method and only constructing when valid. - scoped_refptr tmp_handler(new HttpAuthHandlerBasic()); + scoped_ptr tmp_handler(new HttpAuthHandlerBasic()); if (!tmp_handler->InitFromChallenge(challenge, target, origin, net_log)) return ERR_INVALID_RESPONSE; handler->swap(tmp_handler); -- cgit v1.1