Remove base::ThreadRestrictions::AssertIOAllowed.

This API was replaced with base::AssertBlockingAllowed().

This CL is a search-and-replace:
s/ThreadRestrictions::AssertIOAllowed()/AssertBlockingAllowed()/
and some manual changes in thread_restrictions.h.

[email protected]

Bug: 766678
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win10_chromium_x64_rel_ng;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I05700504c1556da5dee39c1206df5ddd676a2cee
Reviewed-on: https://chromium-review.googlesource.com/728364
Commit-Queue: François Doray <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Reviewed-by: Robert Liao <[email protected]>
Cr-Commit-Position: refs/heads/master@{#510422}
diff --git a/sql/connection.cc b/sql/connection.cc
index 22259912..a8547d2 100644
--- a/sql/connection.cc
+++ b/sql/connection.cc
@@ -1213,7 +1213,7 @@
 //
 // static
 bool Connection::Delete(const base::FilePath& path) {
-  base::ThreadRestrictions::AssertIOAllowed();
+  base::AssertBlockingAllowed();
 
   base::FilePath journal_path(path.value() + FILE_PATH_LITERAL("-journal"));
   base::FilePath wal_path(path.value() + FILE_PATH_LITERAL("-wal"));