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..e516b8ff8a70bca26f83c1f961a7d713487fdbd0 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* get_library() { return auth_library_.get(); } |
asanka
2015/10/26 15:11:54
Nit: library().
aberent
2015/10/27 21:50:44
Done.
|
+ |
int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, |
HttpAuth::Target target, |
const GURL& origin, |