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

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: Add missing conversion 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
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..e35fded9411180947641c56a4b3e10a8637ecfe6 100644
--- a/chrome/browser/history/history_database.cc
+++ b/chrome/browser/history/history_database.cc
@@ -14,6 +14,7 @@
#include "base/rand_util.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
+#include "content/public/browser/download_interrupt_reasons.h"
#include "sql/transaction.h"
#if defined(OS_MACOSX)
@@ -33,7 +34,11 @@ const char kEarlyExpirationThresholdKey[] = "early_expiration_threshold";
} // namespace
-HistoryDatabase::HistoryDatabase() {
+HistoryDatabase::HistoryDatabase()
+ : DownloadDatabase(static_cast<DownloadInterruptReason>(
droger 2015/01/06 10:22:18 Can we use ToHistoryDownloadInterruptReason() here
sdefresne 2015/01/06 10:51:17 Good catch.
+ content::DOWNLOAD_INTERRUPT_REASON_NONE),
+ static_cast<DownloadInterruptReason>(
+ content::DOWNLOAD_INTERRUPT_REASON_CRASH)) {
}
HistoryDatabase::~HistoryDatabase() {

Powered by Google App Engine
This is Rietveld 408576698