Index: net/http/http_auth_handler.cc |
diff --git a/net/http/http_auth_handler.cc b/net/http/http_auth_handler.cc |
index 32028c247d159bd5bbc24ac3b7cc1f0064f2649f..d9c114c8506b8f939472444009d556fd03c36993 100644 |
--- a/net/http/http_auth_handler.cc |
+++ b/net/http/http_auth_handler.cc |
@@ -13,7 +13,8 @@ |
namespace net { |
-HttpAuthHandler::HttpAuthHandler() : target_(HttpAuth::AUTH_NONE) {} |
+HttpAuthHandler::HttpAuthHandler(const std::string& scheme) |
+ : auth_scheme_(scheme), target_(HttpAuth::AUTH_NONE) {} |
HttpAuthHandler::~HttpAuthHandler() { |
} |
@@ -28,13 +29,7 @@ int HttpAuthHandler::HandleInitialChallenge( |
net_log_ = net_log; |
auth_challenge_ = challenge.challenge_text(); |
- int result = Init(challenge); |
- |
- // Init() is expected to set the scheme, realm, score, and properties. The |
- // realm may be empty. |
- DCHECK_IMPLIES(result == OK, HttpAuth::IsValidNormalizedScheme(auth_scheme_)); |
- |
- return result; |
+ return Init(challenge); |
} |
namespace { |