summaryrefslogtreecommitdiffstats
path: root/chrome/browser/io_thread.cc
diff options
context:
space:
mode:
authordanno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 12:47:05 +0000
committerdanno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 12:47:05 +0000
commitac7f3fdb4987d7f44c1612d55437cfcb3eb263f6 (patch)
treec017e812bb298f7f2c7341372ab62021df3c8a29 /chrome/browser/io_thread.cc
parentbb33eb1e2468eacb996e19493a36c3f6e4625b12 (diff)
downloadchromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.zip
chromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.tar.gz
chromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.tar.bz2
Support specifying the GSSAPI library that will be used.
This preference can be set either via command-line or via group policy. BUG=53625 TEST=unittests: ConfigurationPolicyPrefStore*; net_unittests: HttpAuthHandlerNegotiateTest.*:HttpAuthGSSAPIPOSIXTest.*; manually: start Chrome with command-line switch --gssapi-library-name=XYZ and see if this results in the Chrome process loading /usr/lib/whatever/XYZ as soon as an authenticated HTTP site is encountered. Review URL: http://codereview.chromium.org/4560001 Patch from Jakob Kummerow <jkummerow@google.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/io_thread.cc')
-rw-r--r--chrome/browser/io_thread.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 9b7f718..65be41e 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -229,6 +229,7 @@ IOThread::IOThread(PrefService* local_state)
auth_server_whitelist_ = local_state->GetString(prefs::kAuthServerWhitelist);
auth_delegate_whitelist_ = local_state->GetString(
prefs::kAuthNegotiateDelegateWhitelist);
+ gssapi_library_name_ = local_state->GetString(prefs::kGSSAPILibraryName);
}
IOThread::~IOThread() {
@@ -428,6 +429,7 @@ void IOThread::RegisterPrefs(PrefService* local_state) {
local_state->RegisterBooleanPref(prefs::kEnableAuthNegotiatePort, false);
local_state->RegisterStringPref(prefs::kAuthServerWhitelist, "");
local_state->RegisterStringPref(prefs::kAuthNegotiateDelegateWhitelist, "");
+ local_state->RegisterStringPref(prefs::kGSSAPILibraryName, "");
}
net::HttpAuthHandlerFactory* IOThread::CreateDefaultAuthHandlerFactory(
@@ -447,6 +449,7 @@ net::HttpAuthHandlerFactory* IOThread::CreateDefaultAuthHandlerFactory(
supported_schemes,
globals_->url_security_manager.get(),
resolver,
+ gssapi_library_name_,
negotiate_disable_cname_lookup_,
negotiate_enable_port_);
}