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

Unified Diff: sql/diagnostic_error_delegate.h

Issue 11111021: Remove ref counting on sql::ErrorDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as requested Created 8 years, 2 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') | sql/sqlite_features_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/diagnostic_error_delegate.h
diff --git a/sql/diagnostic_error_delegate.h b/sql/diagnostic_error_delegate.h
index e0c42bae9098e59d1a5b3863ebce54ef3bfbf06e..4b8ce323018a158e6b42ed6eebedaeb78d7b18a4 100644
--- a/sql/diagnostic_error_delegate.h
+++ b/sql/diagnostic_error_delegate.h
@@ -24,6 +24,8 @@ namespace sql {
template <class UniqueT>
class DiagnosticErrorDelegate : public ErrorDelegate {
public:
+ DiagnosticErrorDelegate() {}
+ virtual ~DiagnosticErrorDelegate() {}
virtual int OnError(int error, Connection* connection,
Statement* stmt) {
@@ -43,6 +45,8 @@ class DiagnosticErrorDelegate : public ErrorDelegate {
// 26 currently but 50 gives them room to grow.
UMA_HISTOGRAM_ENUMERATION(UniqueT::name(), error, 50);
}
+
+ DISALLOW_COPY_AND_ASSIGN(DiagnosticErrorDelegate);
};
} // namespace sql
« no previous file with comments | « sql/connection.cc ('k') | sql/sqlite_features_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698