| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/transaction.h" | |
| 9 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 10 #include "chrome/browser/history/archived_database.h" | 9 #include "chrome/browser/history/archived_database.h" |
| 10 #include "sql/transaction.h" |
| 11 | 11 |
| 12 namespace history { | 12 namespace history { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 static const int kCurrentVersionNumber = 3; | 16 static const int kCurrentVersionNumber = 3; |
| 17 static const int kCompatibleVersionNumber = 2; | 17 static const int kCompatibleVersionNumber = 2; |
| 18 | 18 |
| 19 } // namespace | 19 } // namespace |
| 20 | 20 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // Put future migration cases here. | 120 // Put future migration cases here. |
| 121 | 121 |
| 122 // When the version is too old, we just try to continue anyway, there should | 122 // When the version is too old, we just try to continue anyway, there should |
| 123 // not be a released product that makes a database too old for us to handle. | 123 // not be a released product that makes a database too old for us to handle. |
| 124 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) << | 124 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) << |
| 125 "Archived database version " << cur_version << " is too old to handle."; | 125 "Archived database version " << cur_version << " is too old to handle."; |
| 126 | 126 |
| 127 return sql::INIT_OK; | 127 return sql::INIT_OK; |
| 128 } | 128 } |
| 129 } // namespace history | 129 } // namespace history |
| OLD | NEW |