| Index: content/browser/download/download_stats.cc
|
| diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
|
| index 5b5f893c2f47d2ab87f4bf7dcadb91de5e842fb0..138a70b2a500d6bd11947bd6c80c1d029c3f7f83 100644
|
| --- a/content/browser/download/download_stats.cc
|
| +++ b/content/browser/download/download_stats.cc
|
| @@ -332,7 +332,7 @@ void RecordDownloadWriteLoopCount(int count) {
|
|
|
| void RecordAcceptsRanges(const std::string& accepts_ranges,
|
| int64 download_len,
|
| - const std::string& etag) {
|
| + bool has_strong_validator) {
|
| int64 max = 1024 * 1024 * 1024; // One Terabyte.
|
| download_len /= 1024; // In Kilobytes
|
| static const int kBuckets = 50;
|
| @@ -349,9 +349,7 @@ void RecordAcceptsRanges(const std::string& accepts_ranges,
|
| 1,
|
| max,
|
| kBuckets);
|
| - // ETags that start with "W/" are considered weak ETags which don't imply
|
| - // byte-wise equality.
|
| - if (!StartsWithASCII(etag, "w/", false))
|
| + if (has_strong_validator)
|
| RecordDownloadCount(STRONG_ETAG_AND_ACCEPTS_RANGES);
|
| } else {
|
| UMA_HISTOGRAM_CUSTOM_COUNTS("Download.AcceptRangesMissingOrInvalid.KBytes",
|
|
|