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

Unified Diff: components/history/core/browser/history_backend.cc

Issue 2954593002: History init: add metrics and skip migration. (Closed)
Patch Set: Explicit enum values Created 3 years, 6 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 | components/history/core/browser/history_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index 1c4aa6a0436526c8c33c228708c1e585b47a3127..5ba3e5658df4e9f66c56be35dadd2aed6d5f0a5d 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -651,6 +651,9 @@ void HistoryBackend::InitImpl(
bool kill_db = scheduled_kill_db_;
if (kill_db)
KillHistoryDatabase();
+
+ // The frequency of this UMA will indicate how often history
+ // initialization fails.
UMA_HISTOGRAM_BOOLEAN("History.AttemptedToFixProfileError", kill_db);
} // Falls through.
case sql::INIT_TOO_NEW: {
« no previous file with comments | « no previous file | components/history/core/browser/history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698