Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Unified Diff: net/http/http_auth_handler_factory.cc

Issue 2826273004: Enable loading gssapi library for Chromad. (Closed)
Patch Set: Enable loading gssapi library for Chromad. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_gssapi_posix_unittest.cc ('k') | net/http/http_auth_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5a48aa222ab87f11db57faa7029cfe6237155498..0b8297d95537c6dd798a2a353e9d8f5cf49989b3 100644
--- a/net/http/http_auth_handler_factory.cc
+++ b/net/http/http_auth_handler_factory.cc
@@ -88,8 +88,12 @@ CreateAuthHandlerRegistryFactory(const HttpAuthPreferences& prefs,
#if defined(OS_WIN)
negotiate_factory->set_library(base::MakeUnique<SSPILibraryDefault>());
#elif defined(OS_POSIX) && !defined(OS_ANDROID)
- negotiate_factory->set_library(
- base::MakeUnique<GSSAPISharedLibrary>(prefs.GssapiLibraryName()));
+ bool allow_gssapi_library_load = true;
+#if defined(OS_CHROMEOS)
+ allow_gssapi_library_load = prefs.AllowGssapiLibraryLoad();
+#endif
+ negotiate_factory->set_library(base::MakeUnique<GSSAPISharedLibrary>(
+ prefs.GssapiLibraryName(), allow_gssapi_library_load));
asanka 2017/04/26 20:42:25 Rather than this, let's make HttpAuthHandlerNegoti
#endif // defined(OS_POSIX) && !defined(OS_ANDROID)
negotiate_factory->set_host_resolver(host_resolver);
registry_factory->RegisterSchemeFactory(kNegotiateAuthScheme,
@@ -146,7 +150,11 @@ HttpAuthHandlerFactory::CreateDefault(HostResolver* host_resolver) {
,
std::string()
#endif
- );
+#if defined(OS_CHROMEOS)
+ ,
+ true
+#endif
+ );
return CreateAuthHandlerRegistryFactory(prefs, host_resolver);
}
« no previous file with comments | « net/http/http_auth_gssapi_posix_unittest.cc ('k') | net/http/http_auth_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698