| 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();
|
|
|
|
|