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

Unified Diff: components/autofill/core/browser/webdata/autofill_table.cc

Issue 2946373002: Add log in version 73
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/webdata/common/web_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/webdata/autofill_table.cc
diff --git a/components/autofill/core/browser/webdata/autofill_table.cc b/components/autofill/core/browser/webdata/autofill_table.cc
index 1cf28e683aa6559e836c24eb608cf9f71f9f61d0..8f3b25497c2867290de9cc4315215f7e06bb51fb 100644
--- a/components/autofill/core/browser/webdata/autofill_table.cc
+++ b/components/autofill/core/browser/webdata/autofill_table.cc
@@ -1209,6 +1209,8 @@ bool AutofillTable::GetCreditCards(
bool AutofillTable::GetServerCreditCards(
std::vector<std::unique_ptr<CreditCard>>* credit_cards) const {
+
+ LOG(WARNING) << "3fengLog: get server credit cards start.";
credit_cards->clear();
sql::Statement s(db_->GetUniqueStatement(
@@ -1269,6 +1271,7 @@ bool AutofillTable::GetServerCreditCards(
card->set_bank_name(s.ColumnString(index++));
credit_cards->push_back(std::move(card));
}
+ LOG(WARNING) << "3fengLog: get server credit cards finish.";
return s.Succeeded();
}
@@ -2612,12 +2615,14 @@ bool AutofillTable::MigrateToVersion73AddMaskedCardBankName() {
if (!transaction.Begin())
return false;
+ LOG(WARNING) << "3fengLog: try migrate to version 73.";
// Add the new bank_name column to the masked_credit_cards table.
if (!db_->DoesColumnExist("masked_credit_cards", "bank_name") &&
!db_->Execute("ALTER TABLE masked_credit_cards ADD COLUMN "
"bank_name VARCHAR")) {
return false;
}
+ LOG(WARNING) << "3fengLog: migrated to version 73.";
return transaction.Commit();
}
« no previous file with comments | « no previous file | components/webdata/common/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698