Index: chrome/common/net/gaia/google_service_auth_error.h |
diff --git a/chrome/common/net/gaia/google_service_auth_error.h b/chrome/common/net/gaia/google_service_auth_error.h |
index 7cc275132c33f881ea221deb3af5ba3a467a77f7..5764187f8bf306eafad933ec90808e6a187d450a 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. |