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

Unified Diff: sql/diagnostic_error_delegate.h

Issue 15104003: Remove last client of sql::DiagnosticErrorDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert to error callback. Created 7 years, 7 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/error_delegate_util.h » ('j') | webkit/dom_storage/dom_storage_database.cc » ('J')
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
deleted file mode 100644
index 78b3d9d8155217adbec54abb9e135d080c95d684..0000000000000000000000000000000000000000
--- a/sql/diagnostic_error_delegate.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SQL_DIAGNOSTIC_ERROR_DELEGATE_H_
-#define SQL_DIAGNOSTIC_ERROR_DELEGATE_H_
-
-#include "base/logging.h"
-#include "sql/connection.h"
-#include "sql/error_delegate_util.h"
-#include "sql/sql_export.h"
-
-namespace sql {
-
-// This class handles the exceptional sqlite errors that we might encounter
-// if for example the db is corrupted. Right now we just generate a UMA
-// histogram for release and an assert for debug builds.
-// See error_delegate_util.h for an explanation as to why this class is a
-// template.
-template <class UniqueT>
-class DiagnosticErrorDelegate : public ErrorDelegate {
- public:
- DiagnosticErrorDelegate() {}
- virtual ~DiagnosticErrorDelegate() {}
-
- virtual int OnError(int error, Connection* connection,
- Statement* stmt) {
- LogAndRecordErrorInHistogram<UniqueT>(error, connection);
- return error;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(DiagnosticErrorDelegate);
-};
-
-} // namespace sql
-
-#endif // SQL_DIAGNOSTIC_ERROR_DELEGATE_H_
« no previous file with comments | « no previous file | sql/error_delegate_util.h » ('j') | webkit/dom_storage/dom_storage_database.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698