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

Issue 2167483002: [CacheStorage] Simpler way to wrap callbacks to run pending operation completions (Closed)

Created:
4 years, 5 months ago by jkarlin
Modified:
4 years, 5 months ago
Reviewers:
michaeln
CC:
chromium-reviews, Peter Beverloo, jam, chasej+watch_chromium.org, nhiroki, iclelland+watch_chromium.org, darin-cc_chromium.org, jkarlin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Simpler way to wrap callbacks to run pending operation completions CacheStorage (and BackgroundSync) wrap callbacks in order to ensure that the scheduler is bumped after running the callback. This resulted in lots of helper functions. This CL cleans up the helper functions with the help of template magic. BUG=629592 Committed: https://crrev.com/3555fc8a7880f6c132292689694aa1925dee461b Cr-Commit-Position: refs/heads/master@{#406668}

Patch Set 1 #

Total comments: 2

Patch Set 2 : void return #

Patch Set 3 : Rebase #

Total comments: 2

Patch Set 4 : Comment clarification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -359 lines) Patch
M content/browser/background_sync/background_sync_manager.h View 1 chunk +0 lines, -19 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.cc View 4 chunks +7 lines, -76 lines 0 comments Download
M content/browser/cache_storage/cache_storage.h View 1 chunk +0 lines, -19 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 9 chunks +24 lines, -107 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.h View 1 2 1 chunk +0 lines, -18 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 10 chunks +25 lines, -117 lines 0 comments Download
M content/browser/cache_storage/cache_storage_scheduler.h View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_scheduler.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
jkarlin
michaeln@ PTAL at cache_storage/ iclelland@ PTAL at background_sync/ Thanks!
4 years, 5 months ago (2016-07-19 19:03:09 UTC) #2
michaeln
nice cleanup https://codereview.chromium.org/2167483002/diff/1/content/browser/cache_storage/cache_storage_scheduler.h File content/browser/cache_storage/cache_storage_scheduler.h (right): https://codereview.chromium.org/2167483002/diff/1/content/browser/cache_storage/cache_storage_scheduler.h#newcode54 content/browser/cache_storage/cache_storage_scheduler.h:54: R RunNextContinuation(const base::Callback<R(Args...)>& callback, should this function ...
4 years, 5 months ago (2016-07-19 23:45:25 UTC) #9
jkarlin
PTAL https://codereview.chromium.org/2167483002/diff/1/content/browser/cache_storage/cache_storage_scheduler.h File content/browser/cache_storage/cache_storage_scheduler.h (right): https://codereview.chromium.org/2167483002/diff/1/content/browser/cache_storage/cache_storage_scheduler.h#newcode54 content/browser/cache_storage/cache_storage_scheduler.h:54: R RunNextContinuation(const base::Callback<R(Args...)>& callback, On 2016/07/19 23:45:25, michaeln ...
4 years, 5 months ago (2016-07-20 00:51:51 UTC) #11
jkarlin
Removed iclelland@ as he is OOO. michaeln@ PTAL at everything, thanks!
4 years, 5 months ago (2016-07-20 11:18:16 UTC) #20
michaeln
lgtm % comment https://codereview.chromium.org/2167483002/diff/40001/content/browser/cache_storage/cache_storage_scheduler.h File content/browser/cache_storage/cache_storage_scheduler.h (right): https://codereview.chromium.org/2167483002/diff/40001/content/browser/cache_storage/cache_storage_scheduler.h#newcode42 content/browser/cache_storage/cache_storage_scheduler.h:42: // Wraps |callback| to first call ...
4 years, 5 months ago (2016-07-20 18:42:16 UTC) #21
jkarlin
Thanks, done. https://codereview.chromium.org/2167483002/diff/40001/content/browser/cache_storage/cache_storage_scheduler.h File content/browser/cache_storage/cache_storage_scheduler.h (right): https://codereview.chromium.org/2167483002/diff/40001/content/browser/cache_storage/cache_storage_scheduler.h#newcode42 content/browser/cache_storage/cache_storage_scheduler.h:42: // Wraps |callback| to first call CompleteOperationAndRunNext ...
4 years, 5 months ago (2016-07-20 19:07:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2167483002/60001
4 years, 5 months ago (2016-07-20 19:08:25 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/204521)
4 years, 5 months ago (2016-07-20 19:40:42 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2167483002/60001
4 years, 5 months ago (2016-07-20 20:35:15 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-20 21:00:02 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 21:02:11 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3555fc8a7880f6c132292689694aa1925dee461b
Cr-Commit-Position: refs/heads/master@{#406668}

Powered by Google App Engine
This is Rietveld 408576698