[TaskScheduler]: Deprecate AssertBlockingAllowed.
Usage of AssertBlockingAllowed outside of base:: is being replaced by
ScopedBlockingCall.
This CL puts AssertBlockingAllowed() into base::internal and
adds AssertBlockingAllowedDeprecated for compatibility with current usage.
This is a purely mechanical change with no side-effects.
[email protected]
Bug: 874080
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I2b482a5ca217a563052dcae4afc45553626aa3d3
Reviewed-on: https://chromium-review.googlesource.com/c/1278540
Commit-Queue: Etienne Pierre-Doray <[email protected]>
Reviewed-by: Etienne Pierre-Doray <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Reviewed-by: François Doray <[email protected]>
Cr-Commit-Position: refs/heads/master@{#600793}
diff --git a/sql/database.h b/sql/database.h
index ce0c106..7bee2567 100644
--- a/sql/database.h
+++ b/sql/database.h
@@ -551,7 +551,7 @@
// official build.
void AssertIOAllowed() const {
if (!in_memory_)
- base::AssertBlockingAllowed();
+ base::AssertBlockingAllowedDeprecated();
}
// Internal helper for Does*Exist() functions.