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

Issue 10080001: Reland 132134 with memory fix - Use LocalFileReader in FileSystemURLRequestJob (Closed)

Created:
8 years, 8 months ago by kinuko
Modified:
8 years, 8 months ago
Reviewers:
michaeln, adamk, tzik
CC:
chromium-reviews, kinuko+watch, darin-cc_chromium.org
Visibility:
Public.

Description

Reland 132134 with memory fix - Use LocalFileReader in FileSystemURLRequestJob LocalFileReader change https://chromiumcodereview.appspot.com/10065011 with memory fix http://codereview.chromium.org/10067031/ BUG=113300, 114999, 123302 TEST=FileSystemURLRequestJobTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132559

Patch Set 1 #

Total comments: 4

Patch Set 2 : Read return value fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -75 lines) Patch
M webkit/blob/blob_url_request_job.cc View 1 2 chunks +11 lines, -9 lines 0 comments Download
M webkit/blob/local_file_reader.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M webkit/blob/local_file_reader.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_system_url_request_job.h View 2 chunks +2 lines, -5 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 10 chunks +16 lines, -57 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job_unittest.cc View 4 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinuko
Merged the reverted change and the test fix for leak.
8 years, 8 months ago (2012-04-13 10:09:21 UTC) #1
kinuko
On 2012/04/13 10:09:21, kinuko wrote: > Merged the reverted change and the test fix for ...
8 years, 8 months ago (2012-04-13 12:11:06 UTC) #2
adamk
lgtm On Fri, Apr 13, 2012 at 5:11 AM, <kinuko@chromium.org> wrote: > On 2012/04/13 10:09:21, ...
8 years, 8 months ago (2012-04-13 15:19:22 UTC) #3
michaeln
lgtm http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url_request_job_unittest.cc File webkit/fileapi/file_system_url_request_job_unittest.cc (right): http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url_request_job_unittest.cc#newcode105 webkit/fileapi/file_system_url_request_job_unittest.cc:105: MessageLoop::current()->RunAllPending(); Would it be sufficient to just add ...
8 years, 8 months ago (2012-04-13 19:08:36 UTC) #4
kinuko
Thanks! http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url_request_job_unittest.cc File webkit/fileapi/file_system_url_request_job_unittest.cc (right): http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url_request_job_unittest.cc#newcode105 webkit/fileapi/file_system_url_request_job_unittest.cc:105: MessageLoop::current()->RunAllPending(); On 2012/04/13 19:08:36, michaeln wrote: > Would ...
8 years, 8 months ago (2012-04-16 02:29:40 UTC) #5
tzik
lgtm http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url_request_job.cc File webkit/fileapi/file_system_url_request_job.cc (right): http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url_request_job.cc#newcode101 webkit/fileapi/file_system_url_request_job.cc:101: base::Unretained(this))); Can we expect LocalFileReader::Read() not to return ...
8 years, 8 months ago (2012-04-16 02:57:55 UTC) #6
kinuko
8 years, 8 months ago (2012-04-16 08:30:41 UTC) #7
http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url...
File webkit/fileapi/file_system_url_request_job.cc (right):

http://codereview.chromium.org/10080001/diff/1/webkit/fileapi/file_system_url...
webkit/fileapi/file_system_url_request_job.cc:101: base::Unretained(this)));
On 2012/04/16 02:57:56, tzik wrote:
> Can we expect LocalFileReader::Read() not to return rv>=0?
> If so, could you add comment to LocalFileReader::Read()?

Oops, good catch this was actually not always true on Windows.  I revived the
code for rv>=0 cases both in FileSystemURLRequestJob and BlobURLRequestJob. 
(It'd great if we have a specialized test for such cases but I'm not sure if it
could be tested in a deterministic way.)

Powered by Google App Engine
This is Rietveld 408576698