diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 17:20:39 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 17:20:39 +0000 |
commit | 0c1d56f7ef8da1c973e9da3594f588029c62977c (patch) | |
tree | f580139829b2570879540bb8eaf1afe6fccfd36a | |
parent | 1783bd57b32908571ac610181f0cf1e3b7a3bb45 (diff) | |
download | chromium_src-0c1d56f7ef8da1c973e9da3594f588029c62977c.zip chromium_src-0c1d56f7ef8da1c973e9da3594f588029c62977c.tar.gz chromium_src-0c1d56f7ef8da1c973e9da3594f588029c62977c.tar.bz2 |
Temporarily allow IO when loading shared GSSAPI library
BUG=66702
TEST=none
Contributed by: asanka@google.com
Review URL: http://codereview.chromium.org/5716004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69148 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/http/http_auth_gssapi_posix.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_auth_gssapi_posix.cc b/net/http/http_auth_gssapi_posix.cc index bd2734f..c492b1b 100644 --- a/net/http/http_auth_gssapi_posix.cc +++ b/net/http/http_auth_gssapi_posix.cc @@ -13,6 +13,7 @@ #include "base/logging.h" #include "base/string_util.h" #include "base/stringprintf.h" +#include "base/thread_restrictions.h" #include "net/base/net_errors.h" #include "net/base/net_util.h" @@ -446,6 +447,10 @@ base::NativeLibrary GSSAPISharedLibrary::LoadSharedLibrary() { for (size_t i = 0; i < num_lib_names; ++i) { const char* library_name = library_names[i]; FilePath file_path(library_name); + + // TODO(asanka): Move library loading to a separate thread. + // http://crbug.com/66702 + base::ThreadRestrictions::ScopedAllowIO allow_io_temporarily; base::NativeLibrary lib = base::LoadNativeLibrary(file_path); if (lib) { // Only return this library if we can bind the functions we need. |