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

Unified Diff: webkit/quota/quota_database.cc

Issue 8341123: Setup the error delegate for the quota database so we get error histograms. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_database.cc
===================================================================
--- webkit/quota/quota_database.cc (revision 107665)
+++ webkit/quota/quota_database.cc (working copy)
@@ -35,6 +35,10 @@
static const char* name() { return "Sqlite.Quota.Error"; }
};
+sql::ErrorDelegate* GetErrorHandlerForQuotaDb() {
+ return new sql::DiagnosticErrorDelegate<HistogramUniquifier>();
+}
+
bool PrepareCachedStatement(
sql::Connection* db, const sql::StatementID& id,
const char* sql, sql::Statement* statement) {
@@ -477,6 +481,8 @@
db_.reset(new sql::Connection);
meta_table_.reset(new sql::MetaTable);
+ db_->set_error_delegate(GetErrorHandlerForQuotaDb());
+
bool opened = false;
if (in_memory_only) {
opened = db_->OpenInMemory();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698