DescriptionServiceWorker: Database functions should return status code instead of boolean
Currently to get an error reason (not found, database corruption, ...), we have
to check is_disabled() and was_corruption_detected() after database operations.
It's a bit messy for the storage class because these functions must be called on
the database task runner.
This change makes database functions return status code instead of boolean.
Other remaining functions will be modified like this in following CLs.
BUG=372704
TEST=should pass all existing tests (no behavioral changes)
Patch Set 1 #Messages
Total messages: 9 (0 generated)
|