Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: components/webdata/common/web_database.cc

Issue 2109643003: Add billing address to masked server credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add version_66.sql to the build file. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/webdata/common/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 "sql/transaction.h" 10 #include "sql/transaction.h"
11 11
12 // Current version number. Note: when changing the current version number, 12 // Current version number. Note: when changing the current version number,
13 // corresponding changes must happen in the unit tests, and new migration test 13 // corresponding changes must happen in the unit tests, and new migration test
14 // added. See |WebDatabaseMigrationTest::kCurrentTestedVersionNumber|. 14 // added. See |WebDatabaseMigrationTest::kCurrentTestedVersionNumber|.
15 // static 15 // static
16 const int WebDatabase::kCurrentVersionNumber = 66; 16 const int WebDatabase::kCurrentVersionNumber = 67;
17 17
18 const int WebDatabase::kDeprecatedVersionNumber = 51; 18 const int WebDatabase::kDeprecatedVersionNumber = 51;
19 19
20 namespace { 20 namespace {
21 21
22 const int kCompatibleVersionNumber = 61; 22 const int kCompatibleVersionNumber = 61;
23 23
24 // Change the version number and possibly the compatibility version of 24 // Change the version number and possibly the compatibility version of
25 // |meta_table_|. 25 // |meta_table_|.
26 void ChangeVersion(sql::MetaTable* meta_table, 26 void ChangeVersion(sql::MetaTable* meta_table,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 bool WebDatabase::MigrateToVersion58DropWebAppsAndIntents() { 185 bool WebDatabase::MigrateToVersion58DropWebAppsAndIntents() {
186 sql::Transaction transaction(&db_); 186 sql::Transaction transaction(&db_);
187 return transaction.Begin() && 187 return transaction.Begin() &&
188 db_.Execute("DROP TABLE IF EXISTS web_apps") && 188 db_.Execute("DROP TABLE IF EXISTS web_apps") &&
189 db_.Execute("DROP TABLE IF EXISTS web_app_icons") && 189 db_.Execute("DROP TABLE IF EXISTS web_app_icons") &&
190 db_.Execute("DROP TABLE IF EXISTS web_intents") && 190 db_.Execute("DROP TABLE IF EXISTS web_intents") &&
191 db_.Execute("DROP TABLE IF EXISTS web_intents_defaults") && 191 db_.Execute("DROP TABLE IF EXISTS web_intents_defaults") &&
192 transaction.Commit(); 192 transaction.Commit();
193 } 193 }
OLDNEW
« no previous file with comments | « components/webdata/common/BUILD.gn ('k') | components/webdata/common/web_database_migration_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698