| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <algorithm> | 5 #include <algorithm> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "app/sql/statement.h" | |
| 9 #include "app/sql/transaction.h" | 8 #include "app/sql/transaction.h" |
| 10 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 11 #include "chrome/browser/history/archived_database.h" | 10 #include "chrome/browser/history/archived_database.h" |
| 12 | 11 |
| 13 namespace history { | 12 namespace history { |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 static const int kCurrentVersionNumber = 2; | 16 static const int kCurrentVersionNumber = 2; |
| 18 static const int kCompatibleVersionNumber = 2; | 17 static const int kCompatibleVersionNumber = 2; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // Put future migration cases here. | 113 // Put future migration cases here. |
| 115 | 114 |
| 116 // When the version is too old, we just try to continue anyway, there should | 115 // When the version is too old, we just try to continue anyway, there should |
| 117 // not be a released product that makes a database too old for us to handle. | 116 // not be a released product that makes a database too old for us to handle. |
| 118 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) << | 117 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) << |
| 119 "Archived database version " << cur_version << " is too old to handle."; | 118 "Archived database version " << cur_version << " is too old to handle."; |
| 120 | 119 |
| 121 return sql::INIT_OK; | 120 return sql::INIT_OK; |
| 122 } | 121 } |
| 123 } // namespace history | 122 } // namespace history |
| OLD | NEW |