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

Unified Diff: net/http/http_auth_handler_negotiate.h

Issue 1414313002: Allow dynamic updating of authentication policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mcs_probe.cc Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698