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

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

Issue 22569006: tmp Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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_database_delegate.h » ('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 3db7acd0d5f43eddcd91288d600d03da6e409cbc..e0663861379c6e83299ef582c36b53933ed95b83 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 "chrome/browser/history/history_database_delegate.h"
#include "sql/transaction.h"
#if defined(OS_MACOSX)
@@ -38,7 +39,8 @@ static const char kNeedsThumbnailMigrationKey[] = "needs_thumbnail_migration";
} // namespace
HistoryDatabase::HistoryDatabase()
- : needs_version_17_migration_(false) {
+ : needs_version_17_migration_(false),
+ delegate_(HistoryDatabaseDelegate::CreateHistoryDatabaseDelegate()) {
}
HistoryDatabase::~HistoryDatabase() {
@@ -92,6 +94,10 @@ sql::InitStatus HistoryDatabase::Init(const base::FilePath& history_name) {
!InitKeywordSearchTermsTable() || !InitDownloadTable() ||
!InitSegmentTables())
return sql::INIT_FAILURE;
+
+ if (delegate_.get())
+ delegate_->Created(this, history_name);
+
CreateMainURLIndex();
CreateKeywordSearchTermsIndices();
« no previous file with comments | « chrome/browser/history/history_database.h ('k') | chrome/browser/history/history_database_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698