| Index: chrome/browser/history/history_database.cc
|
| diff --git a/chrome/browser/history/history_database.cc b/chrome/browser/history/history_database.cc
|
| index 9be2f15bf4daca7aef5bcc68d5b569237dc23258..db0b95f09d42ed31ea1973b0b41e15c47f2f49a7 100644
|
| --- a/chrome/browser/history/history_database.cc
|
| +++ b/chrome/browser/history/history_database.cc
|
| @@ -27,7 +27,7 @@ namespace {
|
| // Current version number. We write databases at the "current" version number,
|
| // but any previous version that can read the "compatible" one can make do with
|
| // or database without *too* many bad effects.
|
| -static const int kCurrentVersionNumber = 25;
|
| +static const int kCurrentVersionNumber = 26;
|
| static const int kCompatibleVersionNumber = 16;
|
| static const char kEarlyExpirationThresholdKey[] = "early_expiration_threshold";
|
|
|
| @@ -418,6 +418,15 @@ sql::InitStatus HistoryDatabase::EnsureCurrentVersion() {
|
| meta_table_.SetVersionNumber(cur_version);
|
| }
|
|
|
| + if (cur_version == 25) {
|
| + if (!MigrateReferrer()) {
|
| + LOG(WARNING) << "Unable to migrate history to version 26";
|
| + return sql::INIT_FAILURE;
|
| + }
|
| + cur_version++;
|
| + meta_table_.SetVersionNumber(cur_version);
|
| + }
|
| +
|
| // When the version is too old, we just try to continue anyway, there should
|
| // not be a released product that makes a database too old for us to handle.
|
| LOG_IF(WARNING, cur_version < GetCurrentVersion()) <<
|
|
|