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

Unified Diff: storage/browser/database/database_tracker.cc

Issue 1145833002: [sql] Stats gathering for sql/ APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: asvitkine nits. Created 5 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 | « sql/statement.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/database/database_tracker.cc
diff --git a/storage/browser/database/database_tracker.cc b/storage/browser/database/database_tracker.cc
index 2058b2c0a07ffd1deffeafcb039db3f168533eec..3d579dc039f717687b0c78f0c18b879fbb047365 100644
--- a/storage/browser/database/database_tracker.cc
+++ b/storage/browser/database/database_tracker.cc
@@ -459,6 +459,8 @@ bool DatabaseTracker::LazyInit() {
}
}
+ db_->set_histogram_tag("DatabaseTracker");
+
// If the tracker database exists, but it's corrupt or doesn't
// have a meta table, delete the database directory.
const base::FilePath kTrackerDatabaseFullPath =
@@ -472,8 +474,6 @@ bool DatabaseTracker::LazyInit() {
return false;
}
- db_->set_histogram_tag("DatabaseTracker");
-
databases_table_.reset(new DatabasesTable(db_.get()));
meta_table_.reset(new sql::MetaTable());
« no previous file with comments | « sql/statement.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698