summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/passive_log_collector.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 23:53:09 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 23:53:09 +0000
commitd17c865366e935a09158cbbbf0bf7b93c24668ad (patch)
tree0505c33de9b2d451d86825d1e6b3f79d049979b2 /chrome/browser/net/passive_log_collector.cc
parent3c094bab532487851f46419baf81d82604f64600 (diff)
downloadchromium_src-d17c865366e935a09158cbbbf0bf7b93c24668ad.zip
chromium_src-d17c865366e935a09158cbbbf0bf7b93c24668ad.tar.gz
chromium_src-d17c865366e935a09158cbbbf0bf7b93c24668ad.tar.bz2
Fix the logging of URL_REQUEST_START, so the nesting is correct on redirects.
(It was possible to get unmatched start/end before). Also renamed the event to URL_REQUEST_START_JOB, since it is really a superset of URLRequest::Start(). Review URL: http://codereview.chromium.org/2091009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/passive_log_collector.cc')
-rw-r--r--chrome/browser/net/passive_log_collector.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/net/passive_log_collector.cc b/chrome/browser/net/passive_log_collector.cc
index bc7bbf6..c506f25 100644
--- a/chrome/browser/net/passive_log_collector.cc
+++ b/chrome/browser/net/passive_log_collector.cc
@@ -150,7 +150,7 @@ std::string PassiveLogCollector::RequestInfo::GetURL() const {
const PassiveLogCollector::Entry& entry = entries[i];
if (entry.phase == net::NetLog::PHASE_BEGIN && entry.params) {
switch (entry.type) {
- case net::NetLog::TYPE_URL_REQUEST_START:
+ case net::NetLog::TYPE_URL_REQUEST_START_JOB:
return static_cast<URLRequestStartEventParameters*>(
entry.params.get())->url().possibly_invalid_spec();
case net::NetLog::TYPE_SOCKET_STREAM_CONNECT: