summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/history/expire_history_backend.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/history/expire_history_backend.cc b/chrome/browser/history/expire_history_backend.cc
index d66467b..145d9b6 100644
--- a/chrome/browser/history/expire_history_backend.cc
+++ b/chrome/browser/history/expire_history_backend.cc
@@ -367,6 +367,9 @@ void ExpireHistoryBackend::ExpireURLsForVisits(
void ExpireHistoryBackend::ArchiveURLsAndVisits(
const VisitVector& visits,
DeleteDependencies* dependencies) {
+ if (!archived_db_)
+ return;
+
// Make sure all unique URL rows are added to the dependency list and the
// archived database. We will also keep the mapping between the main DB URLID
// and the archived one.