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

Unified Diff: content/browser/download/download_resource_handler.cc

Issue 8746020: Fixed a header name error in UMA statistics that record what servers accept range requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed variable name. Created 9 years, 1 month 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 | « content/browser/download/download_resource_handler.h ('k') | content/browser/download/download_stats.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index b1c82792bab16a4b6a4631c0a841ff7971b28683..a0695401db22768548bc4a9a09702c3da89dfa73 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -129,9 +129,9 @@ bool DownloadResourceHandler::OnResponseStarted(
if (!response->headers ||
!response->headers->EnumerateHeader(NULL,
- "Accepts-Ranges",
- &accepts_ranges_)) {
- accepts_ranges_ = "";
+ "Accept-Ranges",
+ &accept_ranges_)) {
+ accept_ranges_ = "";
}
info->prompt_user_for_save_location =
@@ -248,7 +248,7 @@ bool DownloadResourceHandler::OnResponseCompleted(
reason = DOWNLOAD_INTERRUPT_REASON_USER_CANCELED; // User canceled.
}
- download_stats::RecordAcceptsRanges(accepts_ranges_, bytes_read_);
+ download_stats::RecordAcceptsRanges(accept_ranges_, bytes_read_);
if (!download_id_.IsValid())
CallStartedCB(error_code);
« no previous file with comments | « content/browser/download/download_resource_handler.h ('k') | content/browser/download/download_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698