| 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 88916f9d4858aca95c56c9a9e62f6e73ea1e032e..fcf2e452d2a252ac23c45655b4650d0f57dcbf3c 100644
|
| --- a/net/http/http_auth_handler_factory.cc
|
| +++ b/net/http/http_auth_handler_factory.cc
|
| @@ -10,7 +10,9 @@
|
| #include "net/http/http_auth_filter.h"
|
| #include "net/http/http_auth_handler_basic.h"
|
| #include "net/http/http_auth_handler_digest.h"
|
| +#if defined(USE_KERBEROS)
|
| #include "net/http/http_auth_handler_negotiate.h"
|
| +#endif
|
| #include "net/http/http_auth_handler_ntlm.h"
|
|
|
| namespace net {
|
| @@ -49,6 +51,7 @@ HttpAuthHandlerRegistryFactory* HttpAuthHandlerFactory::CreateDefault(
|
| registry_factory->RegisterSchemeFactory(
|
| "digest", new HttpAuthHandlerDigest::Factory());
|
|
|
| +#if defined(USE_KERBEROS)
|
| HttpAuthHandlerNegotiate::Factory* negotiate_factory =
|
| new HttpAuthHandlerNegotiate::Factory();
|
| #if defined(OS_POSIX)
|
| @@ -58,6 +61,7 @@ HttpAuthHandlerRegistryFactory* HttpAuthHandlerFactory::CreateDefault(
|
| #endif
|
| negotiate_factory->set_host_resolver(host_resolver);
|
| registry_factory->RegisterSchemeFactory("negotiate", negotiate_factory);
|
| +#endif // defined(USE_KERBEROS)
|
|
|
| HttpAuthHandlerNTLM::Factory* ntlm_factory =
|
| new HttpAuthHandlerNTLM::Factory();
|
| @@ -144,6 +148,7 @@ HttpAuthHandlerRegistryFactory* HttpAuthHandlerRegistryFactory::Create(
|
| #endif
|
| registry_factory->RegisterSchemeFactory("ntlm", ntlm_factory);
|
| }
|
| +#if defined(USE_KERBEROS)
|
| if (IsSupportedScheme(supported_schemes, "negotiate")) {
|
| HttpAuthHandlerNegotiate::Factory* negotiate_factory =
|
| new HttpAuthHandlerNegotiate::Factory();
|
| @@ -160,6 +165,7 @@ HttpAuthHandlerRegistryFactory* HttpAuthHandlerRegistryFactory::Create(
|
| negotiate_factory->set_use_port(negotiate_enable_port);
|
| registry_factory->RegisterSchemeFactory("negotiate", negotiate_factory);
|
| }
|
| +#endif // defined(USE_KERBEROS)
|
|
|
| return registry_factory;
|
| }
|
|
|