Chromium Code Reviews

Issue 4882001: Return a speed of 0 if a download is paused from DownloadItem, instead of checking when rendering. (Closed)

Created:
10 years, 1 month ago by Zachary Kuznia
Modified:
9 years, 7 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Return a speed of 0 if a download is paused from DownloadItem, instead of checking when rendering. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66102

Patch Set 1 #

Patch Set 2 : Code review #

Total comments: 1

Patch Set 3 : Code review fix #

Unified diffs Side-by-side diffs Stats (+6 lines, -11 lines)
M chrome/browser/download/download_item.cc View 1 chunk +2 lines, -0 lines 0 comments
M chrome/browser/download/download_util.cc View 2 chunks +4 lines, -11 lines 0 comments

Messages

Total messages: 2 (0 generated)
Zachary Kuznia
10 years, 1 month ago (2010-11-12 08:51:25 UTC) #1
Paweł Hajdan Jr.
10 years, 1 month ago (2010-11-12 09:18:00 UTC) #2
LGTM with a comment. Thank you!

http://codereview.chromium.org/4882001/diff/2001/chrome/browser/download/down...
File chrome/browser/download/download_util.cc (right):

http://codereview.chromium.org/4882001/diff/2001/chrome/browser/download/down...
chrome/browser/download/download_util.cc:568: amount_units =
GetByteDisplayUnits(download->CurrentSpeed());
nit: Can you store the value of CurrentSpeed on a local variable to avoid
calling it twice?

Powered by Google App Engine