WebSQL: Simplify API for DatabaseTracker::DeleteDataModifiedSince.
The method currently follows an unfortunate maybe-async pattern established in //net whereby operations may either report an outcome synchronously by returning a net::Error other than net::ERR_IO_PENDING, or report the outcome asynchronously by invoking a callback. This CL changes the method to unconditionally run the callback with the operation outcome. This is intended to simplify the mental model and control flow around the method. Change-Id: Ia9f9418634a2aa9b940e3eea4ec9ac8c6f356b6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2634825 Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Joshua Bell <jsbell@chromium.org> Reviewed-by:
danakj <danakj@chromium.org> Auto-Submit: Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#845103}
Showing
Please register or sign in to comment