
sql::Statement is not thread-safe. Add checks documenting this. The checks are currently excluded on Android, because the Android implementation of History uses sql::Statement in a thread-unsafe way -- see https://crbug.com/866218. Landing the checks on all other platforms now is a bit ugly, but has the benefit of preventing new errors from creeping into the codebase while the Android issues are figured out. Bug: 863724 Change-Id: Ia0d087f40bd892c2ed084e3acfc3cf1ecf12e6af Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1137851 Commit-Queue: Victor Costan <pwnall@chromium.org> Commit-Queue: Darwin Huang <huangdarwin@chromium.org> Reviewed-by: Darwin Huang <huangdarwin@chromium.org> Auto-Submit: Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#841165}