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

Issue 93883006: Fix failure of reading zero-byte files on Drive via StreamReader. (Closed)

Created:
7 years ago by kinaba
Modified:
7 years ago
Reviewers:
hashimoto
CC:
chromium-reviews, tfarina, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Fix failure of reading zero-byte files on Drive via StreamReader. HttpByteRange by its nature represents ranges in inclusive format. We should avoid using it during computation that might involve empty ranges. In the old code, [0-*].ComputeBounds(0) was failing. BUG=329328 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242063

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -11 lines) Patch
M chrome/browser/chromeos/drive/drive_file_stream_reader.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/drive_file_stream_reader.cc View 1 5 chunks +31 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc View 2 chunks +77 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
kinaba
7 years ago (2013-12-19 08:32:00 UTC) #1
hashimoto
https://codereview.chromium.org/93883006/diff/1/chrome/browser/chromeos/drive/drive_file_stream_reader.cc File chrome/browser/chromeos/drive/drive_file_stream_reader.cc (right): https://codereview.chromium.org/93883006/diff/1/chrome/browser/chromeos/drive/drive_file_stream_reader.cc#newcode357 chrome/browser/chromeos/drive/drive_file_stream_reader.cc:357: // Convert it to half-exclusive range with missing bounds ...
7 years ago (2013-12-19 08:53:40 UTC) #2
kinaba
PTAL once again. I thought a short while about "upstreaming" the wrapper into net::HttpByteRange itself, ...
7 years ago (2013-12-20 03:57:55 UTC) #3
hashimoto
lgtm
7 years ago (2013-12-20 04:09:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/93883006/50001
7 years ago (2013-12-20 07:19:13 UTC) #5
commit-bot: I haz the power
7 years ago (2013-12-20 11:07:15 UTC) #6
Message was sent while issue was closed.
Change committed as 242063

Powered by Google App Engine
This is Rietveld 408576698