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

Issue 845083005: [fsp] Simplify aborting logic. (Closed)

Created:
5 years, 11 months ago by mtomasz
Modified:
5 years, 11 months ago
Reviewers:
hirono
CC:
chromium-reviews, nkostylev+watch_chromium.org, tzik, nhiroki, oshima+watch_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[fsp] Simplify aborting logic. Convert the aborting callback to a simple closure, as we don't need to care about the result code, nor about the completion. Note, that an error callback with FILE_ERROR_ABORTED will be called for operations which are aborted. TEST=unit_tests, browser_tests: *FileSystemProvider* BUG=448298 Committed: https://crrev.com/ccc39f293a78dcd09cc05800823b90a74fe19c1b Cr-Commit-Position: refs/heads/master@{#311449}

Patch Set 1 #

Patch Set 2 : Fixed tests. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Total comments: 2

Patch Set 4 : Fixed a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -215 lines) Patch
M chrome/browser/chromeos/file_system_provider/abort_callback.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc View 9 chunks +17 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h View 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc View 1 2 10 chunks +25 lines, -38 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer_unittest.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 2 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/queue.h View 1 2 5 chunks +19 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/queue.cc View 1 2 3 6 chunks +28 lines, -24 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/queue_unittest.cc View 1 2 8 chunks +91 lines, -57 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/throttled_file_system.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/throttled_file_system.cc View 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/throttled_file_system_unittest.cc View 1 2 1 chunk +1 line, -15 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
mtomasz
@hirono: PTAL. Thanks!
5 years, 11 months ago (2015-01-13 11:15:21 UTC) #2
hirono
Thanks! https://codereview.chromium.org/845083005/diff/20001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc File chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc (right): https://codereview.chromium.org/845083005/diff/20001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc#newcode258 chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc:258: base::ThreadTaskRunnerHandle::Get()->PostTask( Could you explain why it does not ...
5 years, 11 months ago (2015-01-14 05:36:06 UTC) #3
mtomasz
https://codereview.chromium.org/845083005/diff/20001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc File chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc (right): https://codereview.chromium.org/845083005/diff/20001/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc#newcode258 chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc:258: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2015/01/14 05:36:06, hirono wrote: > Could you ...
5 years, 11 months ago (2015-01-14 08:55:10 UTC) #4
hirono
lgtm with a nit. Thanks! https://codereview.chromium.org/845083005/diff/40001/chrome/browser/chromeos/file_system_provider/queue.cc File chrome/browser/chromeos/file_system_provider/queue.cc (right): https://codereview.chromium.org/845083005/diff/40001/chrome/browser/chromeos/file_system_provider/queue.cc#newcode68 chrome/browser/chromeos/file_system_provider/queue.cc:68: // If not completed, ...
5 years, 11 months ago (2015-01-14 09:27:04 UTC) #5
mtomasz
https://codereview.chromium.org/845083005/diff/40001/chrome/browser/chromeos/file_system_provider/queue.cc File chrome/browser/chromeos/file_system_provider/queue.cc (right): https://codereview.chromium.org/845083005/diff/40001/chrome/browser/chromeos/file_system_provider/queue.cc#newcode68 chrome/browser/chromeos/file_system_provider/queue.cc:68: // If not completed, then it must be aborted. ...
5 years, 11 months ago (2015-01-14 09:31:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845083005/60001
5 years, 11 months ago (2015-01-14 09:32:23 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-14 10:49:50 UTC) #9
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 10:50:31 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ccc39f293a78dcd09cc05800823b90a74fe19c1b
Cr-Commit-Position: refs/heads/master@{#311449}

Powered by Google App Engine
This is Rietveld 408576698