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

Issue 8424007: Bind: Merge FileUtilProxy and FileSystemFileUtilProxy: Delete/Touch/Truncate/Copy/Move (Closed)

Created:
9 years, 1 month ago by kinuko
Modified:
9 years, 1 month ago
CC:
chromium-reviews, kinuko+watch, darin-cc_chromium.org, brettw-cc_chromium.org, Dai Mikurube (NOT FULLTIME)
Visibility:
Public.

Description

Merge FileUtilProxy and FileSystemFileUtilProxy using PostTaskAndReply: Delete/Touch/Truncate/Copy/Move BUG=none TEST=test_shell_tests:FileSystem* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109010

Patch Set 1 #

Total comments: 2

Patch Set 2 : removed WeakPtr #

Patch Set 3 : fixed for Cancel() #

Patch Set 4 : rebased #

Patch Set 5 : rebased2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -610 lines) Patch
M base/file_util_proxy.h View 1 2 4 3 chunks +24 lines, -1 line 0 comments Download
M base/file_util_proxy.cc View 1 2 4 11 chunks +115 lines, -45 lines 0 comments Download
M webkit/fileapi/file_system_file_util_proxy.h View 1 2 4 4 chunks +0 lines, -90 lines 0 comments Download
M webkit/fileapi/file_system_file_util_proxy.cc View 1 2 4 6 chunks +0 lines, -353 lines 0 comments Download
M webkit/fileapi/file_system_operation.h View 1 2 4 6 chunks +11 lines, -19 lines 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 3 4 30 chunks +131 lines, -102 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
kinuko
9 years, 1 month ago (2011-10-31 06:55:13 UTC) #1
willchan no longer on Chromium
base/ LGTM, but I'd like someone familiar with the webkit/ code to review that portion. ...
9 years, 1 month ago (2011-11-01 23:56:48 UTC) #2
kinuko
http://codereview.chromium.org/8424007/diff/1/webkit/fileapi/file_system_operation.cc File webkit/fileapi/file_system_operation.cc (right): http://codereview.chromium.org/8424007/diff/1/webkit/fileapi/file_system_operation.cc#newcode174 webkit/fileapi/file_system_operation.cc:174: base::Unretained(&operation_context_), On 2011/11/01 23:56:48, willchan wrote: > Sorry, I'm ...
9 years, 1 month ago (2011-11-02 08:04:28 UTC) #3
tzik
9 years, 1 month ago (2011-11-02 08:55:33 UTC) #4
On 2011/11/02 08:04:28, kinuko wrote:
>
http://codereview.chromium.org/8424007/diff/1/webkit/fileapi/file_system_oper...
> File webkit/fileapi/file_system_operation.cc (right):
> 
>
http://codereview.chromium.org/8424007/diff/1/webkit/fileapi/file_system_oper...
> webkit/fileapi/file_system_operation.cc:174:
> base::Unretained(&operation_context_),
> On 2011/11/01 23:56:48, willchan wrote:
> > Sorry, I'm not familiar with the code. It's not obvious to me that this is
> > correct. What prevents operation_context_ from going away? I think this
> > FileSystemOperation is supposed to be self-deleting, right? That said, I
don't
> > know when it gets deleted, and it looks like
> > FileSystemOperation::DidFinishOperation() uses a weak pointer, so that makes
> me
> > a bit worried. Is base::Unretained() correct here? Is there someone else who
> can
> > look at this to doublecheck? Adam Klein perhaps?
> 
> Right, it's self-deleting and WeakPtr makes things confusing.  I converted
some
> 'delete this' with base::Owned(this) and removed WeakPtr usage.  Verified that
> valgrind says ok in my local env.  Hoping that Eric, Taiju or Adam can
> doublecheck the changes under fileapi.

webkit/fileapi/ LGTM as doublecheck.

Powered by Google App Engine
This is Rietveld 408576698