Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: sql/statement.cc

Issue 10540155: Annotate calls to SQLite functions - they have to be executed on a thread allowing IO access. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« sql/connection.cc ('K') | « sql/connection.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/statement.cc
===================================================================
--- sql/statement.cc (revision 142033)
+++ sql/statement.cc (working copy)
@@ -51,6 +51,7 @@
if (!CheckValid())
return false;
+ ref_->AssertIOAllowed();
return CheckError(sqlite3_step(ref_->stmt())) == SQLITE_DONE;
}
@@ -58,6 +59,7 @@
if (!CheckValid())
return false;
+ ref_->AssertIOAllowed();
return CheckError(sqlite3_step(ref_->stmt())) == SQLITE_ROW;
}
@@ -68,6 +70,8 @@
// spurious error callback.
if (clear_bound_vars)
sqlite3_clear_bindings(ref_->stmt());
+
+ ref_->AssertIOAllowed();
sqlite3_reset(ref_->stmt());
}
« sql/connection.cc ('K') | « sql/connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698