diff options
author | chron@chromium.org <chron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-20 19:41:07 +0000 |
---|---|---|
committer | chron@chromium.org <chron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-20 19:41:07 +0000 |
commit | ee69e53ffb6824063af3e2654b8ca92f1e96d0df (patch) | |
tree | e343aecb0d16eb9db61563187b9e2f93b94a67b2 /chrome/common/net | |
parent | adfe93e5c964d1e893e5be4678ef8633cf941fd8 (diff) | |
download | chromium_src-ee69e53ffb6824063af3e2654b8ca92f1e96d0df.zip chromium_src-ee69e53ffb6824063af3e2654b8ca92f1e96d0df.tar.gz chromium_src-ee69e53ffb6824063af3e2654b8ca92f1e96d0df.tar.bz2 |
Use a generic error instead of a dcheck.
Review URL: http://codereview.chromium.org/3186020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net')
-rw-r--r-- | chrome/common/net/gaia/google_service_auth_error.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/common/net/gaia/google_service_auth_error.h b/chrome/common/net/gaia/google_service_auth_error.h index 7cc2751..5764187 100644 --- a/chrome/common/net/gaia/google_service_auth_error.h +++ b/chrome/common/net/gaia/google_service_auth_error.h @@ -26,6 +26,7 @@ #include <string> #include "base/logging.h" #include "googleurl/src/gurl.h" +#include "net/base/net_errors.h" class GoogleServiceAuthError { public: @@ -83,7 +84,10 @@ class GoogleServiceAuthError { : state_(s), captcha_("", GURL(), GURL()), network_error_(0) { - DCHECK(s != CONNECTION_FAILED); + // If the caller has no idea, then we just set it to a generic failure. + if (s == CONNECTION_FAILED) { + network_error_ = net::ERR_FAILED; + } } // Construct a GoogleServiceAuthError from a network error. |