Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: net/http/http_network_transaction.cc

Issue 155150: CHECK to make sure connection_group is never empty. (Closed)
Patch Set: Add comments. Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/socket/client_socket_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index c1d0cef1d84ae196c6eaf5e34c491c59f04e74f3..5d4c8dd43ab7bb4bb18e4fcde42fd6301b77f686 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -592,7 +592,11 @@ int HttpNetworkTransaction::DoInitConnection() {
if (proxy_mode_ != kHTTPProxy)
connection_group.append(request_->url.GetOrigin().spec());
- DCHECK(!connection_group.empty());
+ // 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;
HostResolver::RequestInfo resolve_info(host, port);
« no previous file with comments | « no previous file | net/socket/client_socket_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698