[SessionStorage] Simplify database open callback graph
This changeset simplifies database callback graph in open with GetMany provided by leveldb service. Previously OnDatabaseOpened called OnGotDatabaseVersion, and before calling OnConnectionFinished it was block waiting on a barrier of OnGotNamespaces and OnGotNextMapId. This changeset gets values of database version, namespaces and next map id in one call, and processes the result sequentially. Bug: 965723 Test: autoninja -C out/Default content/test:content_unittests. Passed all content_unittests Change-Id: I968d92d93414cc6918e48d870fea27dc1d74b3d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1714487 Commit-Queue: Daniel Murphy <dmurph@chromium.org> Reviewed-by:Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#684106}
Showing
This diff is collapsed.
Please register or sign in to comment