OLD | NEW |
1 // Copyright (c) 2011 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 "chrome/browser/webdata/web_database.h" | 5 #include "chrome/browser/webdata/web_database.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/sql/statement.h" | |
10 #include "app/sql/transaction.h" | |
11 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" | 9 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" |
12 #include "content/common/notification_service.h" | 10 #include "content/common/notification_service.h" |
| 11 #include "sql/statement.h" |
| 12 #include "sql/transaction.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Current version number. Note: when changing the current version number, | 16 // Current version number. Note: when changing the current version number, |
17 // corresponding changes must happen in the unit tests, and new migration test | 17 // corresponding changes must happen in the unit tests, and new migration test |
18 // added. See |WebDatabaseMigrationTest::kCurrentTestedVersionNumber|. | 18 // added. See |WebDatabaseMigrationTest::kCurrentTestedVersionNumber|. |
19 const int kCurrentVersionNumber = 38; | 19 const int kCurrentVersionNumber = 38; |
20 const int kCompatibleVersionNumber = 38; | 20 const int kCompatibleVersionNumber = 38; |
21 | 21 |
22 // Change the version number and possibly the compatibility version of | 22 // Change the version number and possibly the compatibility version of |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 288 |
289 // Add successive versions here. Each should set the version number and | 289 // Add successive versions here. Each should set the version number and |
290 // compatible version number as appropriate, then fall through to the next | 290 // compatible version number as appropriate, then fall through to the next |
291 // case. | 291 // case. |
292 | 292 |
293 case kCurrentVersionNumber: | 293 case kCurrentVersionNumber: |
294 // No migration needed. | 294 // No migration needed. |
295 return sql::INIT_OK; | 295 return sql::INIT_OK; |
296 } | 296 } |
297 } | 297 } |
OLD | NEW |