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

Unified Diff: sql/statement.cc

Issue 10824008: 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, 5 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
« no previous file with comments | « 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 147715)
+++ sql/statement.cc (working copy)
@@ -48,6 +48,7 @@
}
bool Statement::Run() {
+ ref_->AssertIOAllowed();
if (!CheckValid())
return false;
@@ -55,6 +56,7 @@
}
bool Statement::Step() {
+ ref_->AssertIOAllowed();
if (!CheckValid())
return false;
@@ -62,6 +64,7 @@
}
void Statement::Reset(bool clear_bound_vars) {
+ ref_->AssertIOAllowed();
if (is_valid()) {
// We don't call CheckError() here because sqlite3_reset() returns
// the last error that Step() caused thereby generating a second
« no previous file with comments | « sql/connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698