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

Unified Diff: net/http/http_auth_handler_negotiate.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_handler_factory.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_negotiate.cc
diff --git a/net/http/http_auth_handler_negotiate.cc b/net/http/http_auth_handler_negotiate.cc
index e957676fc40be1c30e7df5ca46b45b4b25d77985..afe8c008b2be1d3c3d05da91d0a763439dcb0d80 100644
--- a/net/http/http_auth_handler_negotiate.cc
+++ b/net/http/http_auth_handler_negotiate.cc
@@ -92,7 +92,12 @@ int HttpAuthHandlerNegotiate::Factory::CreateAuthHandler(
std::unique_ptr<HttpAuthHandler> tmp_handler(
new HttpAuthHandlerNegotiate(http_auth_preferences(), resolver_));
#elif defined(OS_POSIX)
- if (is_unsupported_)
+ bool allow_gssapi_library_load = true;
+#if defined(OS_CHROMEOS)
+ allow_gssapi_library_load = http_auth_preferences() &&
+ http_auth_preferences()->AllowGssapiLibraryLoad();
+#endif
+ if (is_unsupported_ || !allow_gssapi_library_load)
return ERR_UNSUPPORTED_AUTH_SCHEME;
if (!auth_library_->Init()) {
is_unsupported_ = true;
« no previous file with comments | « net/http/http_auth_handler_factory.cc ('k') | net/http/http_auth_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698