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

Unified Diff: net/socket/client_socket_handle.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 | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_handle.cc
diff --git a/net/socket/client_socket_handle.cc b/net/socket/client_socket_handle.cc
index 15f99a60673ad9222d4a3533d8f13d30c699f4a7..384d205e61fe7a248993c848a78919bceef39fa6 100644
--- a/net/socket/client_socket_handle.cc
+++ b/net/socket/client_socket_handle.cc
@@ -27,6 +27,7 @@ int ClientSocketHandle::Init(const std::string& group_name,
const HostResolver::RequestInfo& resolve_info,
int priority,
CompletionCallback* callback) {
+ CHECK(!group_name.empty());
ResetInternal(true);
group_name_ = group_name;
int rv = pool_->RequestSocket(
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698