summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-04 02:33:17 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-04 02:33:17 +0000
commite9d7d2582a0c3c717aa8e3b61767e4b25912ebf5 (patch)
tree3c2d554922740f4bb5d9b0b57d3313ecd7ed48a4 /net/socket
parentcf16180876958530faecbc6757c87e670e5d3d5d (diff)
downloadchromium_src-e9d7d2582a0c3c717aa8e3b61767e4b25912ebf5.zip
chromium_src-e9d7d2582a0c3c717aa8e3b61767e4b25912ebf5.tar.gz
chromium_src-e9d7d2582a0c3c717aa8e3b61767e4b25912ebf5.tar.bz2
NetLog: Move the group_name to a CONNECT_JOB's first
event. This fixes jobs with a SOCKET_BACKUP_CREATED event as the second event not having a description. Also simplifies the net-internals code slightly (Or will once backward compatibility can be removed). This slightly breaks compatibility of old versions of Chrome with new log files - CONNECT_JOBs and SOCKETS from newer versions of Chrome will not have descriptions on M25 or earlier. Review URL: https://chromiumcodereview.appspot.com/11583027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/client_socket_pool_base.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/socket/client_socket_pool_base.cc b/net/socket/client_socket_pool_base.cc
index 3e9cd82..1c12412 100644
--- a/net/socket/client_socket_pool_base.cc
+++ b/net/socket/client_socket_pool_base.cc
@@ -77,7 +77,8 @@ ConnectJob::ConnectJob(const std::string& group_name,
idle_(true) {
DCHECK(!group_name.empty());
DCHECK(delegate);
- net_log.BeginEvent(NetLog::TYPE_SOCKET_POOL_CONNECT_JOB);
+ net_log.BeginEvent(NetLog::TYPE_SOCKET_POOL_CONNECT_JOB,
+ NetLog::StringCallback("group_name", &group_name_));
}
ConnectJob::~ConnectJob() {
@@ -125,8 +126,7 @@ void ConnectJob::ResetTimer(base::TimeDelta remaining_time) {
}
void ConnectJob::LogConnectStart() {
- net_log().BeginEvent(NetLog::TYPE_SOCKET_POOL_CONNECT_JOB_CONNECT,
- NetLog::StringCallback("group_name", &group_name_));
+ net_log().BeginEvent(NetLog::TYPE_SOCKET_POOL_CONNECT_JOB_CONNECT);
}
void ConnectJob::LogConnectCompletion(int net_error) {