| Index: components/history/core/browser/history_database.cc
|
| diff --git a/components/history/core/browser/history_database.cc b/components/history/core/browser/history_database.cc
|
| index b7b90b06ac892849e2adef55c77460909da100e9..a61e2901850d931402cae480de62880fb4c91e3f 100644
|
| --- a/components/history/core/browser/history_database.cc
|
| +++ b/components/history/core/browser/history_database.cc
|
| @@ -37,7 +37,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
|
| // our database without *too* many bad effects.
|
| -const int kCurrentVersionNumber = 35;
|
| +const int kCurrentVersionNumber = 36;
|
| const int kCompatibleVersionNumber = 16;
|
| const char kEarlyExpirationThresholdKey[] = "early_expiration_threshold";
|
| const int kMaxHostsInMemory = 10000;
|
| @@ -570,6 +570,15 @@ sql::InitStatus HistoryDatabase::EnsureCurrentVersion() {
|
| meta_table_.SetVersionNumber(cur_version);
|
| }
|
|
|
| + if (cur_version == 35) {
|
| + if (!MigrateDownloadTransient()) {
|
| + LOG(WARNING) << "Unable to migrate to version 36";
|
| + 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()) <<
|
|
|