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

Issue 8231004: Remaining cleanup (base::Bind): Replacing FileUtilProxy calls with new callback (Closed)

Created:
9 years, 2 months ago by kinuko
Modified:
9 years, 2 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Remaining cleanup (base::Bind): Replacing FileUtilProxy calls with new callback - removing unused methods - making some remaining cleanups BUG=none TEST=green bots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106242

Patch Set 1 : '' #

Patch Set 2 : got it building #

Total comments: 3

Patch Set 3 : updatecd #

Patch Set 4 : build fix #

Patch Set 5 : '' #

Patch Set 6 : remaining cleanup #

Patch Set 7 : rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -536 lines) Patch
M base/file_util_proxy.h View 1 2 3 4 5 4 chunks +19 lines, -72 lines 1 comment Download
M base/file_util_proxy.cc View 1 2 3 4 5 25 chunks +116 lines, -410 lines 1 comment Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/net/url_fetcher.cc View 1 2 3 4 11 chunks +13 lines, -14 lines 0 comments Download
M webkit/blob/blob_url_request_job.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M webkit/blob/blob_url_request_job.cc View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_file_util_proxy.h View 1 2 3 4 1 chunk +13 lines, -8 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 2 3 4 3 chunks +4 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_io_impl.h View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_io_impl.cc View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/quota_file_io.cc View 1 2 3 4 4 chunks +6 lines, -7 lines 0 comments Download
M webkit/plugins/ppapi/quota_file_io_unittest.cc View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
awong
Need to look at this closer, but here's a high level comment. http://codereview.chromium.org/8231004/diff/7001/base/file_util_proxy.h File base/file_util_proxy.h ...
9 years, 2 months ago (2011-10-12 08:09:27 UTC) #1
kinuko
http://codereview.chromium.org/8231004/diff/7001/base/file_util_proxy.h File base/file_util_proxy.h (right): http://codereview.chromium.org/8231004/diff/7001/base/file_util_proxy.h#newcode75 base/file_util_proxy.h:75: class MessageLoopRelay : public RefCountedThreadSafe<MessageLoopRelay> { On 2011/10/12 08:09:27, ...
9 years, 2 months ago (2011-10-12 11:23:37 UTC) #2
awong
Sorry for the slow response. I think your latest proposal sounds pretty good. I'm going ...
9 years, 2 months ago (2011-10-15 00:17:12 UTC) #3
kinuko
Thanks, I've added will and fred to the reviewers. Willchan, Fred, this patch replaces old ...
9 years, 2 months ago (2011-10-17 15:21:03 UTC) #4
James Hawkins
Looks like we conflicted :-/ http://codereview.chromium.org/8311010/ http://codereview.chromium.org/8315011/ http://codereview.chromium.org/8315012/ http://codereview.chromium.org/8311012/
9 years, 2 months ago (2011-10-17 17:05:41 UTC) #5
willchan no longer on Chromium
Uh, should I be reviewing this? There's a conflict right now? Let me know if ...
9 years, 2 months ago (2011-10-17 22:30:30 UTC) #6
James Hawkins
Neg, all of the CLs for this file have landed (got the go-head from kinuko).
9 years, 2 months ago (2011-10-17 22:34:59 UTC) #7
willchan no longer on Chromium
OK, thx. Will ignore this CL. On Mon, Oct 17, 2011 at 3:34 PM, <jhawkins@chromium.org> ...
9 years, 2 months ago (2011-10-17 22:39:43 UTC) #8
kinuko
Willchan, Fred, I rebased this change with the James' ones and separated out the file_util_proxy ...
9 years, 2 months ago (2011-10-18 08:45:32 UTC) #9
akalin
LGTM http://codereview.chromium.org/8231004/diff/23002/base/file_util_proxy.cc File base/file_util_proxy.cc (left): http://codereview.chromium.org/8231004/diff/23002/base/file_util_proxy.cc#oldcode147 base/file_util_proxy.cc:147: &created_, &error_code); indent http://codereview.chromium.org/8231004/diff/23002/base/file_util_proxy.h File base/file_util_proxy.h (right): http://codereview.chromium.org/8231004/diff/23002/base/file_util_proxy.h#newcode35 ...
9 years, 2 months ago (2011-10-18 19:05:11 UTC) #10
willchan no longer on Chromium
I'm concerned about FileUtilProxy. The callbacks that run on the origin thread may have bound ...
9 years, 2 months ago (2011-10-18 19:53:58 UTC) #11
darin (slow to review)
> I'm concerned about FileUtilProxy. The callbacks that run on the origin > thread may ...
9 years, 2 months ago (2011-10-18 20:05:39 UTC) #12
darin (slow to review)
Incidentally, FileUtilProxy was the inspiration for PostTaskAndReply!
9 years, 2 months ago (2011-10-18 20:06:18 UTC) #13
akalin
I'm confused. This CL isn't converting to new callbacks, it's already using new callbacks, and ...
9 years, 2 months ago (2011-10-18 20:07:18 UTC) #14
willchan no longer on Chromium
The conversion to new callbacks is recent here. Yeah, this CL itself is benign, it ...
9 years, 2 months ago (2011-10-18 20:33:00 UTC) #15
willchan no longer on Chromium
I'll send a LGTM for this right now since it's just minor cleanup, but we ...
9 years, 2 months ago (2011-10-18 20:55:09 UTC) #16
James Hawkins
On 2011/10/18 20:55:09, willchan wrote: > I'll send a LGTM for this right now since ...
9 years, 2 months ago (2011-10-18 20:56:59 UTC) #17
willchan no longer on Chromium
9 years, 2 months ago (2011-10-18 21:02:17 UTC) #18
OIC, ok.

On Tue, Oct 18, 2011 at 1:56 PM, <jhawkins@chromium.org> wrote:

> On 2011/10/18 20:55:09, willchan wrote:
>
>> I'll send a LGTM for this right now since it's just minor cleanup, but we
>>
> should
>
>> either revert this and the previous CL here or just fix in place to use
>> PostTaskAndReply(). The reason is the new callbacks support currying,
>> whereas
>> the old callback system didn't, so now we are exposing FileUtilProxy to
>> incorrect use due to ambiguity about which thread the callback will be
>>
> destroyed
>
>> on.
>>
>
>
> Kinuko is not online right now to answer, but she informed me yesterday
> that she
> is planning to convert this to PostTaskAndReply. Likely it'll happen in
> this CL.
>
>
http://codereview.chromium.**org/8231004/<http://codereview.chromium.org/8231...
>

Powered by Google App Engine
This is Rietveld 408576698