summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_auth_handler.cc')
-rw-r--r--net/http/http_auth_handler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/http/http_auth_handler.cc b/net/http/http_auth_handler.cc
index e653e99..5c86d69 100644
--- a/net/http/http_auth_handler.cc
+++ b/net/http/http_auth_handler.cc
@@ -13,7 +13,8 @@
namespace net {
HttpAuthHandler::HttpAuthHandler()
- : score_(-1),
+ : auth_scheme_(AUTH_SCHEME_MAX),
+ score_(-1),
target_(HttpAuth::AUTH_NONE),
properties_(-1),
original_callback_(NULL),
@@ -50,6 +51,7 @@ bool HttpAuthHandler::InitFromChallenge(
DCHECK(!ok || !scheme().empty());
DCHECK(!ok || score_ != -1);
DCHECK(!ok || properties_ != -1);
+ DCHECK(!ok || auth_scheme_ != AUTH_SCHEME_MAX);
if (ok)
histogram_ = base::Histogram::FactoryTimeGet(