Index: net/http/http_auth_handler_negotiate.h |
diff --git a/net/http/http_auth_handler_negotiate.h b/net/http/http_auth_handler_negotiate.h |
index 92b1b52160599a58f21752f2d7d3a8bbf254b6c4..8b244438805d91715e08ce40beeeb5b5cff5accd 100644 |
--- a/net/http/http_auth_handler_negotiate.h |
+++ b/net/http/http_auth_handler_negotiate.h |
@@ -72,10 +72,13 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerNegotiate : public HttpAuthHandler { |
// Sets the system library to use, thereby assuming ownership of |
// |auth_library|. |
- void set_library(AuthLibrary* auth_provider) { |
- auth_library_.reset(auth_provider); |
+ void set_library(scoped_ptr<AuthLibrary> auth_provider) { |
+ auth_library_ = auth_provider.Pass(); |
} |
+ // Only used for testing. |
+ AuthLibrary* library() { return auth_library_.get(); } |
+ |
int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, |
HttpAuth::Target target, |
const GURL& origin, |