| 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 6175545cbc50f7eb630e044624fbc0d98f2325f2..5a3761b641c3cf73ce3332d54f905dc16ba55bf6 100644
|
| --- a/components/autofill/core/browser/webdata/autofill_table.cc
|
| +++ b/components/autofill/core/browser/webdata/autofill_table.cc
|
| @@ -952,6 +952,10 @@ bool AutofillTable::GetServerProfiles(std::vector<AutofillProfile*>* profiles) {
|
|
|
| void AutofillTable::SetServerProfiles(
|
| const std::vector<AutofillProfile>& profiles) {
|
| + sql::Transaction transaction(db_);
|
| + if (!transaction.Begin())
|
| + return;
|
| +
|
| // Delete all old ones first.
|
| sql::Statement delete_old(db_->GetUniqueStatement(
|
| "DELETE FROM server_addresses"));
|
| @@ -996,6 +1000,8 @@ void AutofillTable::SetServerProfiles(
|
| insert.Run();
|
| insert.Reset(true);
|
| }
|
| +
|
| + transaction.Commit();
|
| }
|
|
|
| bool AutofillTable::UpdateAutofillProfile(const AutofillProfile& profile) {
|
|
|