Index: net/http/http_auth_gssapi_posix.cc |
diff --git a/net/http/http_auth_gssapi_posix.cc b/net/http/http_auth_gssapi_posix.cc |
index bd2734f4a29a0cfdb5911a92d4565605034300ba..845eb9b7684ea7588c8dc5d51c6d8affb77402c5 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,9 @@ 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 |
cbentzel
2010/12/14 14:55:02
Nit: > 80 char line.
You can just move the URL to
|
+ 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. |