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

Side by Side Diff: net/http/http_auth_gssapi_posix.cc

Issue 6864020: linux: don't always print dlopen errors from LoadNativeLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_auth_gssapi_posix.h" 5 #include "net/http/http_auth_gssapi_posix.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 num_lib_names = arraysize(kDefaultLibraryNames); 445 num_lib_names = arraysize(kDefaultLibraryNames);
446 } 446 }
447 447
448 for (size_t i = 0; i < num_lib_names; ++i) { 448 for (size_t i = 0; i < num_lib_names; ++i) {
449 const char* library_name = library_names[i]; 449 const char* library_name = library_names[i];
450 FilePath file_path(library_name); 450 FilePath file_path(library_name);
451 451
452 // TODO(asanka): Move library loading to a separate thread. 452 // TODO(asanka): Move library loading to a separate thread.
453 // http://crbug.com/66702 453 // http://crbug.com/66702
454 base::ThreadRestrictions::ScopedAllowIO allow_io_temporarily; 454 base::ThreadRestrictions::ScopedAllowIO allow_io_temporarily;
455 base::NativeLibrary lib = base::LoadNativeLibrary(file_path); 455 base::NativeLibrary lib = base::LoadNativeLibrary(file_path, NULL);
456 if (lib) { 456 if (lib) {
457 // Only return this library if we can bind the functions we need. 457 // Only return this library if we can bind the functions we need.
458 if (BindMethods(lib)) 458 if (BindMethods(lib))
459 return lib; 459 return lib;
460 base::UnloadNativeLibrary(lib); 460 base::UnloadNativeLibrary(lib);
461 } 461 }
462 } 462 }
463 LOG(WARNING) << "Unable to find a compatible GSSAPI library"; 463 LOG(WARNING) << "Unable to find a compatible GSSAPI library";
464 return NULL; 464 return NULL;
465 } 465 }
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 if (rv != OK) { 881 if (rv != OK) {
882 LOG(ERROR) << "Problem initializing context. \n" 882 LOG(ERROR) << "Problem initializing context. \n"
883 << DisplayExtendedStatus(library_, major_status, minor_status) 883 << DisplayExtendedStatus(library_, major_status, minor_status)
884 << '\n' 884 << '\n'
885 << DescribeContext(library_, scoped_sec_context_.get()); 885 << DescribeContext(library_, scoped_sec_context_.get());
886 } 886 }
887 return rv; 887 return rv;
888 } 888 }
889 889
890 } // namespace net 890 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698