Index: net/http/http_auth_handler_factory.cc |
diff --git a/net/http/http_auth_handler_factory.cc b/net/http/http_auth_handler_factory.cc |
index b148aad149e9f2f33a3fe41f130d967b0d7a93f4..5a89964a80c6d47344e6ab2daa747a92b30b3305 100644 |
--- a/net/http/http_auth_handler_factory.cc |
+++ b/net/http/http_auth_handler_factory.cc |
@@ -43,11 +43,11 @@ int HttpAuthHandlerFactory::CreatePreemptiveAuthHandlerFromString( |
} |
// static |
-HttpAuthHandlerRegistryFactory* HttpAuthHandlerFactory::CreateDefault( |
- HostResolver* host_resolver) { |
+scoped_ptr<HttpAuthHandlerRegistryFactory> |
+HttpAuthHandlerFactory::CreateDefault(HostResolver* host_resolver) { |
DCHECK(host_resolver); |
- HttpAuthHandlerRegistryFactory* registry_factory = |
- new HttpAuthHandlerRegistryFactory(); |
+ scoped_ptr<HttpAuthHandlerRegistryFactory> registry_factory = |
+ make_scoped_ptr(new HttpAuthHandlerRegistryFactory()); |
registry_factory->RegisterSchemeFactory( |
"basic", new HttpAuthHandlerBasic::Factory()); |
registry_factory->RegisterSchemeFactory( |