DescriptionDon't abuse LevelDBObserver interface to pass GetAll result.
Instead add a separate (associated) interface just for the purpose of getting
this async response. Also bind using a weak pointer to get this async callback
to make sure the callback isn't actually called after Reset().
Without this fix (or an equivalent) the renderer would DCHECK in the
sanity_check tests, so this also fixes that test to actually give a chance
for async callbacks to run and detect issues like this.
BUG=586194
Committed: https://crrev.com/a3b1e3d5bcc92b7303fdddcbd8994c66a4134e2a
Cr-Commit-Position: refs/heads/master@{#440445}
Patch Set 1 #Patch Set 2 : modify sanity_check test to give async callbacks a chance to cause problems #
Total comments: 4
Depends on Patchset: Messages
Total messages: 22 (13 generated)
|