Index: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc |
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc |
index ad6c132a148410b6c4594658aa7d1885f0de357d..5b645793035bafb7d2e45ac566402de0062d4723 100644 |
--- a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc |
+++ b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc |
@@ -245,6 +245,17 @@ scoped_ptr<WDTypedResult> AutofillWebDataBackendImpl::GetAutofillProfiles( |
base::Unretained(this)))); |
} |
+WebDatabase::State AutofillWebDataBackendImpl::UpdateAutofillEntries( |
+ const std::vector<autofill::AutofillEntry>& autofill_entries, |
+ WebDatabase* db) { |
+ DCHECK(db_thread_->BelongsToCurrentThread()); |
+ if (!AutofillTable::FromWebDatabase(db) |
+ ->UpdateAutofillEntries(autofill_entries)) |
+ return WebDatabase::COMMIT_NOT_NEEDED; |
+ |
+ return WebDatabase::COMMIT_NEEDED; |
+} |
+ |
WebDatabase::State AutofillWebDataBackendImpl::AddCreditCard( |
const CreditCard& credit_card, WebDatabase* db) { |
DCHECK(db_thread_->BelongsToCurrentThread()); |