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

Unified Diff: sql/connection.h

Issue 17726002: [sql] Callback and scoped-ignore tests for sql::Statement. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: prevent nesting, TODO. Created 7 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 | « no previous file | sql/connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.h
diff --git a/sql/connection.h b/sql/connection.h
index a2e8f67f944bd8cde89a05f4345136a855d26944..8155a8fd72d1892b1fcc4cab27075ff2f6efb456 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -125,6 +125,9 @@ class SQL_EXPORT Connection {
void set_error_callback(const ErrorCallback& callback) {
error_callback_ = callback;
}
+ bool has_error_callback() const {
+ return !error_callback_.is_null();
+ }
void reset_error_callback() {
error_callback_.Reset();
}
« no previous file with comments | « no previous file | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698