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

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

Issue 833033002: Remove dependency on //content from history DownloadDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete #include Created 5 years, 11 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 | « chrome/browser/history/history_database.h ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_database.cc
diff --git a/chrome/browser/history/history_database.cc b/chrome/browser/history/history_database.cc
index a0786eb7bec4a4053d67e8012a49da4ed3a4e6d2..0eb7a90e2ac0f394a3d9d6fec865268c3c2e0197 100644
--- a/chrome/browser/history/history_database.cc
+++ b/chrome/browser/history/history_database.cc
@@ -14,6 +14,8 @@
#include "base/rand_util.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
+#include "components/history/content/browser/download_constants_utils.h"
+#include "content/public/browser/download_interrupt_reasons.h"
#include "sql/transaction.h"
#if defined(OS_MACOSX)
@@ -33,7 +35,11 @@ const char kEarlyExpirationThresholdKey[] = "early_expiration_threshold";
} // namespace
-HistoryDatabase::HistoryDatabase() {
+HistoryDatabase::HistoryDatabase()
+ : DownloadDatabase(ToHistoryDownloadInterruptReason(
+ content::DOWNLOAD_INTERRUPT_REASON_NONE),
+ ToHistoryDownloadInterruptReason(
+ content::DOWNLOAD_INTERRUPT_REASON_CRASH)) {
}
HistoryDatabase::~HistoryDatabase() {
« no previous file with comments | « chrome/browser/history/history_database.h ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698