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

Unified Diff: chrome/browser/history/thumbnail_database.cc

Issue 57463009: [sql] Track data recovered in Favicons recovery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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: chrome/browser/history/thumbnail_database.cc
diff --git a/chrome/browser/history/thumbnail_database.cc b/chrome/browser/history/thumbnail_database.cc
index faee69d07dfac1b14bc2c59ee48f19d8663da129..fe6e34f29bd212be85d209a98ab0b65842112e30 100644
--- a/chrome/browser/history/thumbnail_database.cc
+++ b/chrome/browser/history/thumbnail_database.cc
@@ -531,6 +531,7 @@ void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) {
RecordRecoveryEvent(RECOVERY_EVENT_FAILED_FAVICONS_INSERT);
return;
}
+ favicons_rows_recovered = recovery->db()->GetLastChangeCount();
}
// Setup favicons_bitmaps table.
@@ -567,6 +568,7 @@ void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) {
RecordRecoveryEvent(RECOVERY_EVENT_FAILED_FAVICON_BITMAPS_INSERT);
return;
}
+ favicon_bitmaps_rows_recovered = recovery->db()->GetLastChangeCount();
}
// Setup icon_mapping table.
@@ -598,6 +600,7 @@ void RecoverDatabaseOrRaze(sql::Connection* db, const base::FilePath& db_path) {
RecordRecoveryEvent(RECOVERY_EVENT_FAILED_ICON_MAPPING_INSERT);
return;
}
+ icon_mapping_rows_recovered = recovery->db()->GetLastChangeCount();
}
// TODO(shess): Is it possible/likely to have broken foreign-key
« 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