diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 18:20:06 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 18:20:06 +0000 |
commit | 65f3777483e77c1b2bd7de89ebf11ce9ba55c98d (patch) | |
tree | 9c5d052ebd85f592d9a3458f8e1e0daa084775fd /net/http/http_auth_handler.cc | |
parent | b9fc810b6adcc42e4d72cac03482c515696e2d96 (diff) | |
download | chromium_src-65f3777483e77c1b2bd7de89ebf11ce9ba55c98d.zip chromium_src-65f3777483e77c1b2bd7de89ebf11ce9ba55c98d.tar.gz chromium_src-65f3777483e77c1b2bd7de89ebf11ce9ba55c98d.tar.bz2 |
Histogram target for each HTTP Authentication Scheme.
For each HTTP authentication scheme, record whether it was started for a proxy, a secure proxy, a server, or a secure server.
Also, use a new scheme-based enumerated value as an index rather than the score.
BUG=None
TEST=trybots, look at about:histograms after authenticating to different resources.
Review URL: http://codereview.chromium.org/5563006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69018 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler.cc')
-rw-r--r-- | net/http/http_auth_handler.cc | 4 |
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( |