OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/webdata/common/web_database.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
11 #include "sql/statement.h" | 11 #include "sql/statement.h" |
12 #include "sql/transaction.h" | 12 #include "sql/transaction.h" |
13 | 13 |
14 // Current version number. Note: when changing the current version number, | 14 // Current version number. Note: when changing the current version number, |
15 // corresponding changes must happen in the unit tests, and new migration test | 15 // corresponding changes must happen in the unit tests, and new migration test |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 if (!it->second->MigrateToVersion(next_version, | 164 if (!it->second->MigrateToVersion(next_version, |
165 &update_compatible_version)) { | 165 &update_compatible_version)) { |
166 return FailedMigrationTo(next_version); | 166 return FailedMigrationTo(next_version); |
167 } | 167 } |
168 | 168 |
169 ChangeVersion(&meta_table_, next_version, update_compatible_version); | 169 ChangeVersion(&meta_table_, next_version, update_compatible_version); |
170 } | 170 } |
171 } | 171 } |
172 return sql::INIT_OK; | 172 return sql::INIT_OK; |
173 } | 173 } |
OLD | NEW |