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

Issue 968763002: Fix aborting in throttled file system (FSP). (Closed)

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

Description

Fix aborting in throttled file system (FSP). The previous logic was causing a memory corruption when aborting was not invoked with the callback, but due to unmounting the file system. As there are multiple paths for aborting, this CL adds a method IsAborted on the Queue class so it's possible to check if a task has been aborted before. TEST=unit_tests: *FileSystemProviderQueue* BUG=454310 Committed: https://crrev.com/d3126d1fbaec8f9cbf513ac436ae634e2d12b093 Cr-Commit-Position: refs/heads/master@{#318652}

Patch Set 1 #

Patch Set 2 : Cleaned up. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -1 line) Patch
M chrome/browser/chromeos/file_system_provider/queue.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/queue.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/queue_unittest.cc View 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/throttled_file_system.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
mtomasz
@hirono: PTAL. Thanks.
5 years, 9 months ago (2015-03-02 04:24:43 UTC) #2
hirono
Just an idea: 1. Queue has the three methods: Enqueue, Abort, Remove 2. If the ...
5 years, 9 months ago (2015-03-02 05:14:06 UTC) #3
mtomasz
On 2015/03/02 05:14:06, hirono wrote: > Just an idea: > > 1. Queue has the ...
5 years, 9 months ago (2015-03-02 05:30:14 UTC) #4
hirono
Thanks. lgtm for merging it.
5 years, 9 months ago (2015-03-02 05:41:36 UTC) #5
mtomasz
On 2015/03/02 05:41:36, hirono wrote: > Thanks. lgtm for merging it. Thanks. I'll prepare a ...
5 years, 9 months ago (2015-03-02 05:42:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/968763002/20001
5 years, 9 months ago (2015-03-02 05:43:00 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-02 06:13:52 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 06:14:34 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d3126d1fbaec8f9cbf513ac436ae634e2d12b093
Cr-Commit-Position: refs/heads/master@{#318652}

Powered by Google App Engine
This is Rietveld 408576698