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

Issue 188533002: Handle has_more correctly in WebFileSystemImpl (Closed)

Created:
6 years, 9 months ago by hashimoto
Modified:
6 years, 9 months ago
Reviewers:
kinuko
CC:
chromium-reviews, tzik, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, nhiroki
Visibility:
Public.

Description

Handle has_more correctly in WebFileSystemImpl Make WaitableCallbackResults ref-counted and a member of WebFileSystemImpl to keep it alive longer than before. Add CallbacksUnregisterMode argument to RunCallbacks() to keep callbacks registered when necessary. Initialize next_callbacks_id_ with 1 instead 0 to make 0 usable as an invalid ID. Implement waitForAdditionalResult(). UnregisterCallbacks() is also responsible to unregister WaitableCallbackResults. Corresponding patch: https://codereview.chromium.org/178333009/ BUG=347900 TEST=run_webkit_tests.sh http/tests/filesystem/\* TEST=run_webkit_tests.sh http/tests/inspector/filesystem/\* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255625

Patch Set 1 : #

Patch Set 2 : ifdef hack #

Total comments: 2

Patch Set 3 : rebase & rename to AddResultsAndSignal #

Patch Set 4 : Fix race #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -140 lines) Patch
M content/child/fileapi/webfilesystem_impl.h View 1 4 chunks +20 lines, -3 lines 0 comments Download
M content/child/fileapi/webfilesystem_impl.cc View 1 2 3 21 chunks +177 lines, -137 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
hashimoto
6 years, 9 months ago (2014-03-06 11:56:26 UTC) #1
hashimoto
Added #ifdef hack to keep compatibility between blink and chrome. (also to the blink patch) ...
6 years, 9 months ago (2014-03-06 12:24:05 UTC) #2
kinuko
lgtm https://codereview.chromium.org/188533002/diff/90001/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/188533002/diff/90001/content/child/fileapi/webfilesystem_impl.cc#newcode44 content/child/fileapi/webfilesystem_impl.cc:44: void SetResultsAndSignal(const base::Closure& results_closure) { SetResultsAndSignal -> AddResultsAndSignal ...
6 years, 9 months ago (2014-03-06 13:12:35 UTC) #3
nhiroki
FYI: Although this change is conflicting with mine (https://codereview.chromium.org/102603014/), please feel free to commit this ...
6 years, 9 months ago (2014-03-06 16:15:31 UTC) #4
hashimoto
https://codereview.chromium.org/188533002/diff/90001/content/child/fileapi/webfilesystem_impl.cc File content/child/fileapi/webfilesystem_impl.cc (right): https://codereview.chromium.org/188533002/diff/90001/content/child/fileapi/webfilesystem_impl.cc#newcode44 content/child/fileapi/webfilesystem_impl.cc:44: void SetResultsAndSignal(const base::Closure& results_closure) { On 2014/03/06 13:12:35, kinuko ...
6 years, 9 months ago (2014-03-07 02:15:47 UTC) #5
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 9 months ago (2014-03-07 02:15:55 UTC) #6
hashimoto
On 2014/03/06 16:15:31, nhiroki wrote: > FYI: Although this change is conflicting with mine > ...
6 years, 9 months ago (2014-03-07 02:18:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/188533002/110001
6 years, 9 months ago (2014-03-07 02:19:10 UTC) #8
hashimoto
Found a race bug and uploaded a new patch. PTAL The race was happening when ...
6 years, 9 months ago (2014-03-07 05:34:14 UTC) #9
kinuko
lgtm, with one note It looks changing the if condition for m_fileSystem->waitForAdditionalResult() to while would ...
6 years, 9 months ago (2014-03-07 07:59:44 UTC) #10
hashimoto
On 2014/03/07 07:59:44, kinuko wrote: > lgtm, with one note > > It looks changing ...
6 years, 9 months ago (2014-03-07 08:26:57 UTC) #11
kinuko
On 2014/03/07 08:26:57, hashimoto wrote: > On 2014/03/07 07:59:44, kinuko wrote: > > lgtm, with ...
6 years, 9 months ago (2014-03-07 08:47:59 UTC) #12
kinuko
(I mean, please go ahead landing, I wanted to make sure you surely want to ...
6 years, 9 months ago (2014-03-07 08:53:52 UTC) #13
hashimoto
On 2014/03/07 08:53:52, kinuko wrote: > (I mean, please go ahead landing, I wanted to ...
6 years, 9 months ago (2014-03-07 08:56:38 UTC) #14
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 9 months ago (2014-03-07 08:56:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/188533002/150001
6 years, 9 months ago (2014-03-07 08:57:04 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 15:54:11 UTC) #17
Message was sent while issue was closed.
Change committed as 255625

Powered by Google App Engine
This is Rietveld 408576698