summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 05:18:12 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 05:18:12 +0000
commite001b82b7023f8b8a2dfec90e9615eb4bfdd374e (patch)
tree9e893190b4ede5af3605458531f59ef54f376089 /net/http
parentefafddc023fdc08a9f28f5834326df9971336625 (diff)
downloadchromium_src-e001b82b7023f8b8a2dfec90e9615eb4bfdd374e.zip
chromium_src-e001b82b7023f8b8a2dfec90e9615eb4bfdd374e.tar.gz
chromium_src-e001b82b7023f8b8a2dfec90e9615eb4bfdd374e.tar.bz2
Store the url into a stack variable for the CHECK when connection_group.empty().
BUG=http://crbug.com/15374. Review URL: http://codereview.chromium.org/160315 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_network_transaction.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 0ccaf79..f4894de 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -600,9 +600,17 @@ int HttpNetworkTransaction::DoInitConnection() {
// TODO(willchan): Downgrade this back to a DCHECK after closing
// http://crbug.com/15374.
- CHECK(!connection_group.empty()) << "URL: " << request_->url.GetOrigin()
- << ", Host: " << host
- << ", Port: " << port;
+ if (connection_group.empty()) {
+ char url_debug[4096];
+ base::strlcpy(url_debug,
+ request_->url.possibly_invalid_spec().c_str(),
+ arraysize(url_debug));
+ char url_origin_debug[4096];
+ base::strlcpy(url_origin_debug,
+ request_->url.GetOrigin().possibly_invalid_spec().c_str(),
+ arraysize(url_origin_debug));
+ CHECK(false) << "URL: " << url_debug << ", Origin: " << url_origin_debug;
+ }
HostResolver::RequestInfo resolve_info(host, port);