summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/page_load_histograms.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 18:22:53 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 18:22:53 +0000
commit2ed002e7b20b9f0355c73e114c627a707c0eb55f (patch)
tree46eeac839dfec723864a0519bb28385d485f8c53 /chrome/renderer/page_load_histograms.cc
parent41f7c255ae4ccce36b27be5819b965b876662e92 (diff)
downloadchromium_src-2ed002e7b20b9f0355c73e114c627a707c0eb55f.zip
chromium_src-2ed002e7b20b9f0355c73e114c627a707c0eb55f.tar.gz
chromium_src-2ed002e7b20b9f0355c73e114c627a707c0eb55f.tar.bz2
Don't collect UMA stats on multipart page loads because it's
not clear what to measure. I was hitting the DCHECK for commit <= first_paint. Review URL: http://codereview.chromium.org/8050029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/page_load_histograms.cc')
-rw-r--r--chrome/renderer/page_load_histograms.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/page_load_histograms.cc b/chrome/renderer/page_load_histograms.cc
index 352e03d..147e0f8 100644
--- a/chrome/renderer/page_load_histograms.cc
+++ b/chrome/renderer/page_load_histograms.cc
@@ -19,6 +19,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
using base::Time;
@@ -102,6 +103,10 @@ void PageLoadHistograms::Dump(WebFrame* frame) {
if (scheme_type == 0)
return;
+ // Ignore multipart requests.
+ if (frame->dataSource()->response().isMultipartPayload())
+ return;
+
NavigationState* navigation_state =
NavigationState::FromDataSource(frame->dataSource());