commit | e8e8e4beb1c3a3e2e074381980e05e831a9c4e6e | [log] [tgz] |
---|---|---|
author | Troy Hildebrandt <thildebr@chromium.org> | Thu Nov 29 23:38:22 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 29 23:38:22 2018 |
tree | bd4de8dae2689e7fd8397a8368c4cb03c40644de | |
parent | aa067347e446b463d801a45e42042a2f35efbe9d [diff] |
Add IsCorrupt() to ProtoDatabase wrappers/clients. Adds the ability to check for corruption via an IsCorrupt() function that's pure virtual on the ProtoDatabase. IsCorrupt() is also introduced in the ProtoLevelDBWrapper, and the corruption flag gets set on the Init callback after checking status. Unit tests changed slightly because the init callback needed to be put into ProtoLevelDBWrapper instead of outside so it could modify is_corrupt_, and the new use of the WeakPtr caused a race condition that meant the test always failed to trigger the callback if we don't wait for init to complete. Bug: 870813 Change-Id: Ib00435dae8cdac490053fbfc6befb95094b1edec Reviewed-on: https://chromium-review.googlesource.com/c/1355521 Commit-Queue: Troy Hildebrandt <thildebr@chromium.org> Reviewed-by: Tommy Nyquist <nyquist@chromium.org> Cr-Commit-Position: refs/heads/master@{#612434}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .