diff options
Diffstat (limited to 'net/http/http_auth_handler_factory.cc')
-rw-r--r-- | net/http/http_auth_handler_factory.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/http/http_auth_handler_factory.cc b/net/http/http_auth_handler_factory.cc index e6d697f..c2d011b 100644 --- a/net/http/http_auth_handler_factory.cc +++ b/net/http/http_auth_handler_factory.cc @@ -20,7 +20,7 @@ int HttpAuthHandlerFactory::CreateAuthHandlerFromString( HttpAuth::Target target, const GURL& origin, const BoundNetLog& net_log, - scoped_refptr<HttpAuthHandler>* handler) { + scoped_ptr<HttpAuthHandler>* handler) { HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end()); return CreateAuthHandler(&props, target, origin, CREATE_CHALLENGE, 1, net_log, handler); @@ -32,7 +32,7 @@ int HttpAuthHandlerFactory::CreatePreemptiveAuthHandlerFromString( const GURL& origin, int digest_nonce_count, const BoundNetLog& net_log, - scoped_refptr<HttpAuthHandler>* handler) { + scoped_ptr<HttpAuthHandler>* handler) { HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end()); return CreateAuthHandler(&props, target, origin, CREATE_PREEMPTIVE, digest_nonce_count, net_log, handler); @@ -90,15 +90,15 @@ int HttpAuthHandlerRegistryFactory::CreateAuthHandler( CreateReason reason, int digest_nonce_count, const BoundNetLog& net_log, - scoped_refptr<HttpAuthHandler>* handler) { + scoped_ptr<HttpAuthHandler>* handler) { if (!challenge->valid()) { - *handler = NULL; + handler->reset(); return ERR_INVALID_RESPONSE; } std::string lower_scheme = StringToLowerASCII(challenge->scheme()); FactoryMap::iterator it = factory_map_.find(lower_scheme); if (it == factory_map_.end()) { - *handler = NULL; + handler->reset(); return ERR_UNSUPPORTED_AUTH_SCHEME; } DCHECK(it->second); |